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

Function now_ns

src/watcher/watcher.c:134–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132/* ── Time helper ────────────────────────────────────────────────── */
133
134static 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

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