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

Function cbm_clock_gettime

src/foundation/compat.c:294–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292
293#ifdef _WIN32
294int cbm_clock_gettime(int clk_id, struct timespec *tp) {
295 (void)clk_id;
296 LARGE_INTEGER freq, count;
297 QueryPerformanceFrequency(&freq);
298 QueryPerformanceCounter(&count);
299 tp->tv_sec = (time_t)(count.QuadPart / freq.QuadPart);
300 tp->tv_nsec = (long)((count.QuadPart % freq.QuadPart) * 1000000000LL / freq.QuadPart);
301 return 0;
302}
303#endif
304
305/* ── 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
scale_elapsed_usFunction · 0.85
cbm_scale_beginFunction · 0.85
elapsed_msFunction · 0.85
run_extract_resolveFunction · 0.85
run_postpassesFunction · 0.85

Calls

no outgoing calls

Tested by 2

extract_wide_flat_msFunction · 0.68
now_msFunction · 0.68