MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / diag_sleep_ms

Function diag_sleep_ms

src/foundation/diagnostics.c:459–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457/* ── Writer ─────────────────────────────────────────────────────────────────────── */
458
459static void diag_sleep_ms(unsigned int milliseconds) {
460 struct timespec delay = {
461 .tv_sec = (time_t)(milliseconds / 1000U),
462 .tv_nsec = (long)((milliseconds % 1000U) * 1000000U),
463 };
464 (void)cbm_nanosleep(&delay, NULL);
465}
466
467static void diag_wait_for_interval(void) {
468 uint64_t deadline = cbm_now_ms() + DIAG_INTERVAL_MS;

Callers 3

diag_wait_for_intervalFunction · 0.85
diag_test_pause_writerFunction · 0.85
cbm_diag_stopFunction · 0.85

Calls 1

cbm_nanosleepFunction · 0.85

Tested by

no test coverage detected