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

Function cbm_parse_duration

src/traces/traces.c:66–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64/* ── parseDuration ───────────────────────────────────────────────── */
65
66int64_t cbm_parse_duration(const char *start_nano, const char *end_nano) {
67 if (!start_nano || !end_nano) {
68 return 0;
69 }
70 int64_t start = strtoll(start_nano, NULL, CBM_DECIMAL_BASE);
71 int64_t end = strtoll(end_nano, NULL, CBM_DECIMAL_BASE);
72 return (end > start) ? (end - start) : 0;
73}
74
75/* ── extractHTTPInfo ─────────────────────────────────────────────── */
76

Callers 2

cbm_extract_http_infoFunction · 0.85
test_traces.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected