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

Function cbm_clock_gettime

src/foundation/compat.c:265–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263
264#ifdef _WIN32
265int cbm_clock_gettime(int clk_id, struct timespec *tp) {
266 (void)clk_id;
267 LARGE_INTEGER freq, count;
268 QueryPerformanceFrequency(&freq);
269 QueryPerformanceCounter(&count);
270 tp->tv_sec = (time_t)(count.QuadPart / freq.QuadPart);
271 tp->tv_nsec = (long)((count.QuadPart % freq.QuadPart) * 1000000000LL / freq.QuadPart);
272 return 0;
273}
274#endif
275
276/* ── getline (Windows lacks it) ───────────────────────────────── */

Callers 15

now_nsFunction · 0.85
now_nsFunction · 0.85
cbm_mcp_server_handleFunction · 0.85
cbm_profile_nowFunction · 0.85
cbm_profile_log_elapsedFunction · 0.85
elapsed_msFunction · 0.85
run_extract_resolveFunction · 0.85
run_postpassesFunction · 0.85
dump_and_persistFunction · 0.85
closure_try_planFunction · 0.85
run_closure_deltaFunction · 0.85

Calls

no outgoing calls

Tested by 2

extract_wide_flat_msFunction · 0.68
now_msFunction · 0.68