UNPKG

@unified-llm/core

Version:

Unified LLM interface (in-memory).

10 lines 326 B
export function createDefaultClock() { const p = globalThis.performance; const hasPerfNow = p && typeof p.now === "function"; const nowMs = hasPerfNow ? () => p.now() : () => Date.now(); const nowEpochMs = () => Date.now(); return { nowMs, nowEpochMs }; } //# sourceMappingURL=timing.js.map