Prg_Timer_Schedule()
Abstract
Schedules a timer for some processing to be done in the future.
Syntax
Prg_Timer_Schedule (time, handler)
| Argument | Type | Description |
|---|---|---|
time |
double |
time until the handler is to be called, in seconds from the current simulation time |
handler |
PrgT_Timer_Handler | handler to be called at the appropriate time |
Return Type
void
No return value.
Header
prg_timer.h
Details
This function is used to schedule execution of a handler function at a specified time. The time specified is measured from when the timer is scheduled and must be greater than 10 milliseconds (the granularity of the timer).
If you want the handler to be called multiple times, you should call this function again from inside the handler.
The prototype for handler is given in PrgT_Timer_Handler.