Precise

Nanosecond timer for node.js

View the Project on GitHub avoidwork/precise

build status

API

start()

Starts a timer

stop()

Stops a timer

diff()

Returns the nanoseconds between start() & stop()

Example

var precise = require('precise'),
    timer   = precise().start();

setTimeout(function () {
    console.log(timer.stop().diff());
}, 1000);