Files
boc/cc-frontend/node_modules/nano-time/index.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

18 lines
470 B
JavaScript

'use strict';
const BigInt = require('big-integer');
const loadNs = process.hrtime();
const loadMs = new Date().getTime();
function nanoseconds() {
let diffNs = process.hrtime(loadNs);
return BigInt(loadMs).times(1e6).add(BigInt(diffNs[0]).times(1e9).plus(diffNs[1])).toString();
}
function microseconds() {
return BigInt(nanoseconds()).divide(1e3).toString();
}
module.exports = nanoseconds;
module.exports.microseconds = module.exports.micro = microseconds;