Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

time-inspector

1.1.2 • Public • Published

time-inspector

MIT License Build Status

NPM status

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

Install

npm i time-inspector

DownloadsWeekly Downloads

10

Version

1.1.2

License

MIT

Unpacked Size

2.9 kB

Total Files

4

Last publish

Collaborators

  • avatar