From 29908d5ef687c53153bde17856e4d8103bc0ad7b Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 30 May 2017 14:38:29 +0200 Subject: paths, multi env and webpack config --- src/timer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/timer.ts') 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]; -- cgit v1.2.3