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
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
'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;
|
||||
Reference in New Issue
Block a user