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

Package Sidebar

Install

npm i time-inspector

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

2.9 kB

Total Files

4

Last publish

Collaborators

  • oprogramador