| 5 | #include <ccan/tap/tap.h> |
| 6 | |
| 7 | static void new_timer(struct timers *timers, unsigned long nsec) |
| 8 | { |
| 9 | struct timer *timer; |
| 10 | struct timemono when; |
| 11 | |
| 12 | timer = malloc(sizeof(*timer)); |
| 13 | timer_init(timer); |
| 14 | when.ts.tv_sec = 0; when.ts.tv_nsec = nsec; |
| 15 | timer_addmono(timers, timer, when); |
| 16 | } |
| 17 | |
| 18 | static void update_and_expire(struct timers *timers) |
| 19 | { |
no test coverage detected