npm

Check out our latest tech talk, "JavaScript Supply Chain Security" presented by VP of Security, Adam Baldwin.Watch it here »

microtime-x

1.1.0 • Public • Published

microtime-x - Get current time in microseconds (cross-environment solution)

Returns the number of microseconds elapsed since 1 January 1970 00:00:00 UTC

In browser relies on performance.now or it's engine specific variant if available, in Node.js microtime by Wade Simmons is used (if supported). If none of the mentioned works then Date.now() result multiplied by 1000 is returned

Installation

NPM

In your project path:

$ npm install microtime-x

Browser

You can easily bundle npm packages for browser with modules-webmake

Tests Build Status

$ npm test

install

npm i microtime-x

Downloadsweekly downloads

182

version

1.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability