1.1.0 • Published 7 years ago

microtime-x v1.1.0

Weekly downloads
141
License
MIT
Repository
github
Last release
7 years ago

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
1.1.0

7 years ago

1.0.0

9 years ago

0.2.2

9 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.1

11 years ago

0.1.0

11 years ago