34 typedef void (*el_timer_callback)(
void*);
206 #ifdef EL_INCLUDE_LIB_INTERNAL_CONTEXT
208 #define EL_TIMER_DIM 10
215 void (*callback)(
void*);
221 extern el_mct el_timer_mck;
222 extern el_bool el_is_in_timer_callback;
223 extern el_uint16 el_timer_overwatch;
225 void el_init_timers();
226 void el_routine_timers();
void el_timer_set_callback(el_handle h, el_timer_callback func, void *arg)
set the callback of a timer
void el_timer_pause(el_handle h)
pause the countdown of the timer
void el_timer_start_fraction(el_handle h, int num, int den)
specify the countdown time using a fraction and start the timer
void el_timer_resume(el_handle h)
resume the countdown of the timer
void el_timer_start(el_handle h, el_time t_ms)
specify the countdown time and start the timer
void el_delete_timer(el_handle h)
delete the timer
void el_timer_set_periodic(el_handle h, el_bool b)
set whether the timer repeat the countdown process once a countdown is finished
el_handle el_create_timer(void)
create a timer in the system
el_uint32 el_timer_get_rounds(el_handle h)
get the rounds of the timer
void el_timer_set_rounds(el_handle h, el_uint32 n)
set the rounds of the timer
el_handle el_timer_callback_get_handle()
get the handle of the timer in a timer callback