Browse Source
Fixed "process.hrtime() only accepts an Array tuple." error
gh-953
Permutator
9 years ago
No known key found for this signature in database
GPG Key ID: 763F7A2F18CAB33E
1 changed files with
1 additions and
1 deletions
-
src/utils/flushTime.js
|
|
@ -10,8 +10,8 @@ if ( typeof process === 'undefined' ) { |
|
|
|
}; |
|
|
|
} else { |
|
|
|
time = function time ( previous ) { |
|
|
|
const hrtime = process.hrtime( previous ); |
|
|
|
if ( previous ) { |
|
|
|
const hrtime = process.hrtime( previous ); |
|
|
|
return hrtime[0] * 1e3 + hrtime[1] / 1e6; |
|
|
|
} |
|
|
|
}; |
|
|
|