1.1.2 • Published 5 years ago
time-inspector v1.1.2
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