| 36 | } |
| 37 | |
| 38 | static uint64_t time_to_grains(struct timemono t) |
| 39 | { |
| 40 | return t.ts.tv_sec * ((uint64_t)1000000000 / TIMER_GRANULARITY) |
| 41 | + (t.ts.tv_nsec / TIMER_GRANULARITY); |
| 42 | } |
| 43 | |
| 44 | static struct timemono grains_to_time(uint64_t grains) |
| 45 | { |
no outgoing calls
no test coverage detected