peak_time*
).
Typedefs | |
typedef __peak_timer * | peak_timer |
Opaque timer pointer type. | |
typedef void(* | peak_timer_callback )(peak_timer t, void *context) |
Timer callback. | |
Functions | |
peak_timer | peak_timer_create (double fire, double interval, peak_timer_callback callout, void *context) |
Create a timer. | |
void | peak_timer_configure (peak_timer t, double fire, double interval) |
(Re)configure a timer. | |
double | peak_timer_get_firetime (peak_timer t) |
Get timer's fire date time. | |
double | peak_timer_get_interval (peak_timer t) |
Get timer's repeat-interval time. | |
void * | peak_timer_get_context (peak_timer t) |
Get timer's extra application-defined context. | |
void | peak_timer_set_context (peak_timer t, void *context) |
Change the context pointer of a timer. |
|
(Re)configure a timer.
|
|
Create a timer. Note that the timer isn't activated until you add it to the task of your choice (usually peak_task_self()) with peak_task_timer_add().
|
|
Get timer's extra application-defined context.
|
|
Get timer's fire date time.
|
|
Get timer's repeat-interval time.
|
|
Change the context pointer of a timer.
|