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

Function now_ns

internal/cbm/cbm.c:69–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67#endif
68
69static uint64_t now_ns(void) {
70 struct timespec ts;
71 cbm_clock_gettime(CBM_CLOCK_MONO, &ts);
72 return ((uint64_t)ts.tv_sec * NSEC_PER_SEC) + (uint64_t)ts.tv_nsec;
73}
74
75// cbm_get_profile returns accumulated parse/extract times and file count.
76void cbm_get_profile(cbm_profile_out_t out) {

Callers 2

cbm_timeout_cbFunction · 0.70
cbm_extract_file_exFunction · 0.70

Calls 1

cbm_clock_gettimeFunction · 0.85

Tested by

no test coverage detected