| 132 | /* ── Time helper ────────────────────────────────────────────────── */ |
| 133 | |
| 134 | static int64_t now_ns(void) { |
| 135 | struct timespec ts; |
| 136 | cbm_clock_gettime(CLOCK_MONOTONIC, &ts); |
| 137 | return ((int64_t)ts.tv_sec * NS_PER_SEC) + ts.tv_nsec; |
| 138 | } |
| 139 | |
| 140 | /* ── Adaptive interval ──────────────────────────────────────────── */ |
| 141 |
no test coverage detected