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

Function now_ns

src/watcher/watcher.c:90–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88/* ── Time helper ────────────────────────────────────────────────── */
89
90static 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

Callers 2

init_baselineFunction · 0.70
cbm_watcher_poll_onceFunction · 0.70

Calls 1

cbm_clock_gettimeFunction · 0.85

Tested by

no test coverage detected