Helper library for doing timing with hrtimer
npm install hr-accumulatorA helper library for tracking accumulated times using hrtime.
npm install hr-accumulator
Removes all registered timers
Resets the referenced timer to 0 seconds.
Starts a timer to start tracking time.
Stops the referenced timer, and stop tracking time.
Pretty print the current accumulated time of the referenced timer in the format (name): (seconds)s (milliseconds)ms (microseconds)μs (nanoseconds)ns
Print the referenced timer to console.log.
List out various statistics for all registered timers, takes the following magnitude strings to change stats magnitude:
* 's' or 'seconds'
* 'ms' or 'milliseconds' (default)
* 'µs' or 'microseconds'
* 'ns' or 'nanoseconds'