precise-timer
A precise timer for Node.js. Delivers its result in milliseconds with decimals. Default is 2 decimals, but you can use up to 6 decimals - to get down to nanosecond precision.
Usage
npm install precise-timer
Example
PreciseTimer = ; // decimals is optional, defaults to 2let timer = decimals:6;let randomNumberArray = ; // a loop that is time consumingwhilerandomNumberArraylength < 100000 randomNumberArray; // log how long time that has elapsedconsole;