Browse Source

Fixed "process.hrtime() only accepts an Array tuple." error

gh-953
Permutator 8 years ago
parent
commit
ae82c520e6
No known key found for this signature in database GPG Key ID: 763F7A2F18CAB33E
  1. 2
      src/utils/flushTime.js

2
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;
}
};

Loading…
Cancel
Save