3.6.0 • Published 9 years ago

since-when v3.6.0

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

Timing functions that use process.hrtime

npm install since-when

usage

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')
  tock()
}

METHODS

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

3.6.0

9 years ago

3.4.0

9 years ago

3.3.0

9 years ago

3.2.0

10 years ago

3.0.0

10 years ago

2.0.0

11 years ago

1.0.0

11 years ago

0.6.0

11 years ago

0.5.0

11 years ago

0.4.8

11 years ago

0.4.7

12 years ago

0.4.5

12 years ago

0.4.0

12 years ago

0.3.0

12 years ago

0.2.0

12 years ago

0.1.0

12 years ago