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

Function now_ms

src/ui/httpd.c:81–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79/* ── Small platform helpers ───────────────────────────────────── */
80
81static int64_t now_ms(void) {
82#ifdef _WIN32
83 return (int64_t)GetTickCount64();
84#else
85 struct timespec ts;
86 clock_gettime(CLOCK_MONOTONIC, &ts);
87 return (int64_t)ts.tv_sec * 1000 + ts.tv_nsec / 1000000;
88#endif
89}
90
91/* Wait until the socket is readable/writable. 1 = ready, 0 = timeout, -1 = error.
92 * Windows uses select() deliberately (WSAPoll has a Won't-Fix bug where

Callers 3

wait_connection_readyFunction · 0.70
cbm_httpd_read_requestFunction · 0.70
cbm_http_reply_bufFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected