JSPM

time-ms

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q24757F
  • License MIT

get the current time in milliseconds, with nanosecond precision

Package Exports

  • time-ms

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

Readme

time-ms

stable

get the current time in milliseconds, with nanosecond precision

Usage

NPM

var time = require('time-ms');
var start = time();

setTimeout(() => {
    var finish = time()
    console.log('took '+(finish-start)+'ms');
    // took 1000.097435ms
}, 1000);

License

MIT, see LICENSE.md for details.