Skip to content

3imed-jaberi/ns-timer

Repository files navigation

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

About

Nanoseconds timer for Node.js.

Resources

License

Stars

Watchers

Forks

Packages

No packages published