lib/statsFunctions.js
function hrtimer() {
    const start = process.hrtime();

    return () => {
      const durationComponents = process.hrtime(start);
      const seconds = durationComponents[0];
      const nanoseconds = durationComponents[1];
      const duration = (seconds * 1000) + (nanoseconds / 1E6);
      return duration;
    };
  }
function hrtimer() {
    const start = process.hrtime();

    return () => {
      const durationComponents = process.hrtime(start);
      const seconds = durationComponents[0];
      const nanoseconds = durationComponents[1];
      const duration = (seconds * 1000) + (nanoseconds / 1E6);
      return duration;
    };
  }
function hrtimer ( ) { const start = process . hrtime ( ) ; return ( ) => { const durationComponents = process . hrtime ( start ) ; const seconds = durationComponents [ 0 ] ; const nanoseconds = durationComponents [ 1 ] ; const duration = ( seconds * 1000 ) + ( nanoseconds / 1E6 ) ; return duration ; } ; }
High-resolution timer
High - resolution timer