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

Function runtime_deadline_after

src/daemon/runtime.c:249–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247};
248
249static uint64_t runtime_deadline_after(uint32_t timeout_ms) {
250 uint64_t now_ms = cbm_now_ms();
251 if (UINT64_MAX - now_ms < (uint64_t)timeout_ms) {
252 return UINT64_MAX;
253 }
254 return now_ms + (uint64_t)timeout_ms;
255}
256
257static void runtime_wait_tick(uint64_t deadline_ms) {
258 uint64_t now_ms = cbm_now_ms();

Calls 1

cbm_now_msFunction · 0.85

Tested by

no test coverage detected