Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
Use CLOCK_MONOTONIC if available (#342)
Christof Meerwald2e110fc54c7f
diff --git a/internal/cbm/cbm.c b/internal/cbm/cbm.cindex 7a7fa95be..371e757ee 100644--- a/internal/cbm/cbm.c+++ b/internal/cbm/cbm.c@@ -33,7 +33,9 @@ static _Atomic uint64_t total_files = 0;/* Use compat.h's cbm_clock_gettime which accepts CLOCK_MONOTONIC (value* varies by platform: 1 on Linux/Windows, 6 on macOS). We pass the* platform value via the compat.h fallback. */-#ifdef __APPLE__+#if defined(CLOCK_MONOTONIC)+#define CBM_CLOCK_MONO CLOCK_MONOTONIC+#elif defined(__APPLE__)#define CBM_CLOCK_MONO 6#else#define CBM_CLOCK_MONO 1