Files
boc/cc-frontend/node_modules/microseconds/now.js
T
Bernt aee0f09db8 landvex: Fixar och tester klara för alla komponenter
- Datafabrik: Dockerfile fix, agentorkestrering fungerar
- Vision: Identify-modell, FAISS, OCR alla testade
- API: Alla 7 integrationstester passerade
- Upplösare: Entitetsupplösning verifierad
2026-07-05 06:41:32 +00:00

23 lines
470 B
JavaScript

/* global performance */
'use strict'
let now
if (global.process && process.hrtime) {
const hrtime = process.hrtime
now = () => {
const hr = hrtime()
return (hr[0] * 1e9 + hr[1]) / 1e3
}
} else if (global.performance && performance.now) {
const timing = performance.timing
const start = (timing && timing.navigationStart) || Date.now()
now = () => (start + performance.now()) * 1e3
} else {
now = () => Date.now() * 1e3
}
module.exports = now