diff options
Diffstat (limited to 'src/timer.ts')
-rw-r--r-- | src/timer.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timer.ts b/src/timer.ts index 2fc2ade04..dd67dbd29 100644 --- a/src/timer.ts +++ b/src/timer.ts @@ -50,7 +50,7 @@ class TimeoutHandle { * Get a performance counter in milliseconds. */ export let performanceNow = (() => { - if (typeof "process" !== "undefined") { + if (typeof process !== "undefined" && process.hrtime) { return () => { const t = process.hrtime(); return t[0] * 1e9 + t[1]; |