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

Function now_ms

src/ui/httpd.c:61–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59/* ── Small platform helpers ───────────────────────────────────── */
60
61static int64_t now_ms(void) {
62#ifdef _WIN32
63 return (int64_t)GetTickCount64();
64#else
65 struct timespec ts;
66 clock_gettime(CLOCK_MONOTONIC, &ts);
67 return (int64_t)ts.tv_sec * 1000 + ts.tv_nsec / 1000000;
68#endif
69}
70
71/* Wait until the socket is readable. 1 = readable, 0 = timeout, -1 = error.
72 * Windows uses select() deliberately (WSAPoll has a Won't-Fix bug where

Callers 1

cbm_httpd_read_requestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected