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

Function scale_elapsed_us

src/foundation/profile.c:82–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80};
81
82static long scale_elapsed_us(const struct timespec *start) {
83 struct timespec now;
84 cbm_clock_gettime(CLOCK_MONOTONIC, &now);
85 return ((long)(now.tv_sec - start->tv_sec) * PROF_US_PER_SEC) +
86 ((now.tv_nsec - start->tv_nsec) / PROF_NS_PER_US);
87}
88
89void cbm_scale_begin(cbm_scale_probe_t *probe, const char *phase, long total) {
90 if (!probe) {

Callers 1

cbm_scale_tickFunction · 0.85

Calls 1

cbm_clock_gettimeFunction · 0.85

Tested by

no test coverage detected