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:
+22
@@ -0,0 +1,22 @@
|
||||
/* 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
|
||||
Reference in New Issue
Block a user