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

Function cbm_clock_gettime

src/foundation/compat.c:329–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327
328#ifdef _WIN32
329int cbm_clock_gettime(int clk_id, struct timespec *tp) {
330 (void)clk_id;
331 LARGE_INTEGER freq, count;
332 QueryPerformanceFrequency(&freq);
333 QueryPerformanceCounter(&count);
334 tp->tv_sec = (time_t)(count.QuadPart / freq.QuadPart);
335 tp->tv_nsec = (long)((count.QuadPart % freq.QuadPart) * 1000000000LL / freq.QuadPart);
336 return 0;
337}
338#endif
339
340/* ── Per-thread CPU time ──────────────────────────────────────── */

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