@unified-llm/core
Version:
Unified LLM interface (in-memory).
13 lines • 445 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createDefaultClock = createDefaultClock;
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