Browse Source

Pass linting

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

7
src/utils/flushTime.js

@ -1,7 +1,8 @@
const DEBUG = false; const DEBUG = false;
const map = new Map; const map = new Map;
let time, toMilliseconds; let time;
let toMilliseconds;
if ( typeof process === 'undefined' ) { if ( typeof process === 'undefined' ) {
time = function time ( previous ) { time = function time ( previous ) {
@ -11,7 +12,7 @@ if ( typeof process === 'undefined' ) {
toMilliseconds = function toMilliseconds ( time ) { toMilliseconds = function toMilliseconds ( time ) {
return time; return time;
} };
} else { } else {
time = function time ( previous ) { time = function time ( previous ) {
return previous === undefined ? process.hrtime() : process.hrtime( previous ); return previous === undefined ? process.hrtime() : process.hrtime( previous );
@ -19,7 +20,7 @@ if ( typeof process === 'undefined' ) {
toMilliseconds = function toMilliseconds ( time ) { toMilliseconds = function toMilliseconds ( time ) {
return time[0] * 1e3 + time[1] / 1e6; return time[0] * 1e3 + time[1] / 1e6;
} };
} }
export function timeStart ( label ) { export function timeStart ( label ) {

Loading…
Cancel
Save