UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

15 lines (14 loc) • 497 B
//#region src/shared/monotonic-time.ts /** Process-local milliseconds: never persist or exchange these readings as epochs. */ function monotonicNow() { return performance.now(); } function monotonicDeadlineAfter(e) { return monotonicNow() + e; } /** Signed remaining budget; callers retain their expiration and rounding policy. */ function remainingMonotonicMs(e) { return e - monotonicNow(); } //#endregion export { monotonicNow as n, remainingMonotonicMs as r, monotonicDeadlineAfter as t };