ns-timer

0.1.0 • Public • Published

ns-timer


Build Status Coverage Status NPM version License Code Size

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)

License


MIT © Imed Jaberi

Package Sidebar

Install

npm i ns-timer

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

4.92 kB

Total Files

5

Last publish

Collaborators

  • 3imed-jaberi