JSPM

ns-timer

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q18562F
  • License MIT

Nanoseconds timer for Node.js.

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


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