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

Function runtime_deadline_after

src/daemon/runtime.c:354–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352};
353
354static uint64_t runtime_deadline_after(uint32_t timeout_ms) {
355 uint64_t now_ms = cbm_now_ms();
356 if (UINT64_MAX - now_ms < (uint64_t)timeout_ms) {
357 return UINT64_MAX;
358 }
359 return now_ms + (uint64_t)timeout_ms;
360}
361
362static uint32_t runtime_ephemeral_linger_timeout_ms(void) {
363#ifdef CBM_ENABLE_TEST_SEAMS

Calls 1

cbm_now_msFunction · 0.85

Tested by

no test coverage detected