00001 00013 #ifndef TIMER_H_ 00014 #define TIMER_H_ 00015 00016 #include <stdint.h> 00017 00019 typedef struct timer Timer; 00020 00022 typedef struct timing { 00023 00038 Timer * (*start)(uint64_t start, uint16_t interval, 00039 void (*function)(void *), void *arg); 00040 00052 void (*update)(Timer * timer, uint16_t interval); 00053 00062 void (*cancel)(Timer * timer); 00063 00067 int64_t (*now)(void); 00068 } Timing; 00069 00078 #endif /* TIMER_H_ */