pre

precise

Nanosecond timer for node.js

Showing:

Popularity

Downloads/wk

32

GitHub Stars

6

Maintenance

Last Commit

6yrs ago

Contributors

1

Package

Dependencies

0

Size (min+gzip)

0.6KB

License

BSD-3-Clause

Type Definitions

Tree-Shakeable

No?

Categories

Readme

precise

Nanosecond timer for node.js

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);

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100