Skip to content

abloom/hrduration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hrduration

Simple wrapper around process.hrtime to get duration.

var HRDuration = require('hrduration');

...

var timer = 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.

About

Simple wrapper around process.hrtime to get duration.

Resources

License

Stars

Watchers

Forks

Packages

No packages published