Package Exports
- ns-timer
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ns-timer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ns-timer
Nanoseconds timer for Node.js.
Installation
# npm
$ npm install ns-timer
# yarn
$ yarn add ns-timerUsage
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)