| 13 | } |
| 14 | |
| 15 | uint64_t |
| 16 | timer_usec(const timedelta_t *timer) { |
| 17 | nstime_t delta; |
| 18 | |
| 19 | nstime_copy(&delta, &timer->t1); |
| 20 | nstime_subtract(&delta, &timer->t0); |
| 21 | return nstime_ns(&delta) / 1000; |
| 22 | } |
| 23 | |
| 24 | void |
| 25 | timer_ratio(timedelta_t *a, timedelta_t *b, char *buf, size_t buflen) { |
no test coverage detected