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

Function cbm_parse_duration

src/traces/traces.c:100–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100int64_t cbm_parse_duration(const char *start_nano, const char *end_nano) {
101 if (!start_nano || !end_nano) {
102 return 0;
103 }
104 int64_t start = strtoll(start_nano, NULL, CBM_DECIMAL_BASE);
105 int64_t end = strtoll(end_nano, NULL, CBM_DECIMAL_BASE);
106 return (end > start) ? (end - start) : 0;
107}
108
109/* ── extractHTTPInfo ─────────────────────────────────────────────── */
110

Callers 1

test_traces.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected