diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-30 14:38:29 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-30 14:38:29 +0200 |
commit | 29908d5ef687c53153bde17856e4d8103bc0ad7b (patch) | |
tree | e0bb41c0d7283f2ef497dfaffd2656fbfe501b49 /src/timer.ts | |
parent | b1f0d6ac523af08ed4d8521b19aee4ce6c173b49 (diff) | |
download | wallet-core-29908d5ef687c53153bde17856e4d8103bc0ad7b.tar.xz |
paths, multi env and webpack config
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]; |