1.0.0 • Published 9 years ago

hrduration v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

hrduration

Simple wrapper around process.hrtime to get duration.

var HRDuration = require('hrduration');

...

var timer = new HRDuration();
doSomething();
console.log(timer.getSeconds());

Functions:

  • getSeconds - returns the duration in seconds since initialization.
  • getMilliseconds - returns the duration in milliseconds since initialization.
  • getNanoseconds - returns the duration in nanoseconds since initialization.