time-anything
v1.0.1
Published
This time in millerseconds and nanoseconds which ever is need to check your timings. The aim was to create a simple timer that does nothing but stop start and records the 2 two times. Then you pick which one you need.
Downloads
15
Readme
TimeAnything
Its a simple way of timing processes.
Install
npm install time-anything
Example
var timing = require("time-anything");
timing.start();
/* Code to time */
timing.end();
console.log("Timing Ms = " + timing.timeTakenMs() + "ms");
console.log("Timing Ns = " + timing.timeTakenNanoSeconds() + "ns");