3 * \author John Hodge (thePowersGang)
9 EXPORT(udi_timer_start);
10 EXPORT(udi_timer_start_repeating);
11 EXPORT(udi_timer_cancel);
12 EXPORT(udi_time_current);
13 EXPORT(udi_time_between);
14 EXPORT(udi_time_since);
17 void udi_timer_start(udi_timer_expired_call_t *callback, udi_cb_t *gcb, udi_time_t interval)
21 void udi_timer_start_repeating(udi_timer_tick_call_t *callback, udi_cb_t *gcb, udi_time_t interval)
25 void udi_timer_cancel(udi_cb_t *gcb)
30 udi_timestamp_t udi_time_current(void)
34 udi_time_t udi_time_between(udi_timestamp_t start_time, udi_timestamp_t end_time)
37 tTime delta = end_time - start_time;
38 ret.seconds = delta / 1000;
39 ret.nanoseconds = (delta % 1000) * 1000 * 1000;
42 udi_time_t udi_time_since(udi_timestamp_t start_time)
44 return udi_time_between(start_time, udi_time_current());