| 88 | /* ── Time helper ────────────────────────────────────────────────── */ |
| 89 | |
| 90 | static int64_t now_ns(void) { |
| 91 | struct timespec ts; |
| 92 | cbm_clock_gettime(CLOCK_MONOTONIC, &ts); |
| 93 | return ((int64_t)ts.tv_sec * NS_PER_SEC) + ts.tv_nsec; |
| 94 | } |
| 95 | |
| 96 | /* ── Adaptive interval ──────────────────────────────────────────── */ |
| 97 |
no test coverage detected