| 176 | /* ── Time helper ────────────────────────────────────────────────── */ |
| 177 | |
| 178 | static int64_t now_ns(void) { |
| 179 | struct timespec ts; |
| 180 | cbm_clock_gettime(CLOCK_MONOTONIC, &ts); |
| 181 | return ((int64_t)ts.tv_sec * NS_PER_SEC) + ts.tv_nsec; |
| 182 | } |
| 183 | |
| 184 | /* ── Adaptive interval ──────────────────────────────────────────── */ |
| 185 |
no test coverage detected