now has hrtime Measurement

This commit is contained in:
2017-04-23 18:46:13 +02:00
parent 836f8d18b0
commit fad367ca0b
6 changed files with 121 additions and 1546 deletions

View File

@ -6,6 +6,18 @@ tap.test('.start()', async () => {
early.start('early')
await smartdelay.delayFor(2000)
})
tap.test('.stop()', async () => {
await early.stop()
})
})
tap.test('hrTime Measurement', async () => {
let earlyHr = new early.hrtMeasurement()
earlyHr.start()
await smartdelay.delayFor(1000)
let measuredTime = earlyHr.stop()
console.log(measuredTime)
return expect(measuredTime.milliSeconds).to.be.greaterThan(999)
})
tap.start()