time-inspector
v1.1.2
Published
NodeJS time inspector
Downloads
1
Readme
time-inspector
NodeJS time inspector allowing very easy detection of bottlenecks.
install
npm i --save-dev time-inspector
usage
const time = require('time-inspector').default;
time(); // for the first call it returns 0
foo();
console.log(time()); // it returns the time (in seconds with nanoseconds precision) elapsed from the previous call
bar();
console.log(time()); // again it returns the time elapsed from the previous call