timing functions using process.hrtime

npm install since-when
2 downloads in the last day
56 downloads in the last week
98 downloads in the last month

Timing functions that use process.hrtime

npm install since-when


var Time = require('../');
var time = new Time();

time.every(1e9, tick)
// every billion nanosecond tick

function tick(tock, interval){
  console.log(interval + ' time in nanoseconds passed')


T.sinceBegin() - time since new T()

T.sinceLast() - time since last tick, starts at new T()

T.every(nanoseconds, function) - call function(nextTick, interval) every nanoseconds. function must call nextTick()

see /examples

npm loves you