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

Function runtime_deadline_after

src/daemon/runtime.c:261–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259};
260
261static uint64_t runtime_deadline_after(uint32_t timeout_ms) {
262 uint64_t now_ms = cbm_now_ms();
263 if (UINT64_MAX - now_ms < (uint64_t)timeout_ms) {
264 return UINT64_MAX;
265 }
266 return now_ms + (uint64_t)timeout_ms;
267}
268
269static void runtime_wait_tick(uint64_t deadline_ms) {
270 uint64_t now_ms = cbm_now_ms();

Calls 1

cbm_now_msFunction · 0.85

Tested by

no test coverage detected