JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 559
  • Score
    100M100P100Q105409F

Precision timer for nanosecond differences

Package Exports

  • precise

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 (precise) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

precise

Nanosecond timer for node.js

build status

API

start()

Starts a timer

stop()

Stops a timer

diff()

Returns the nanoseconds between start() & stop()

Example

var precise = require('precise'),
    timer   = precise().start();

setTimeout(function () {
    console.log(timer.stop().diff());
}, 1000);