ns-timer
v0.1.0
Published
Nanoseconds timer for Node.js.
Downloads
4
Maintainers
Readme
ns-timer
Nanoseconds timer for Node.js.
Installation
# npm
$ npm install ns-timer
# yarn
$ yarn add ns-timer
Usage
This is a practical example of how to use.
const Timer = require('ns-timer')
const timer = new Timer().start()
setTimeout(() => {
console.log(timer.stop().diff())
}, 1000)