microtime-x
Get current time in microseconds (cross-environment)
Last updated 9 years ago by medikoo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install microtime-x 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.0                                ...           latest (9 years ago)

7 Versions

  • 1.1.0                                ...           9 years ago
  • 1.0.0                                ...           11 years ago
  • 0.2.2                                ...           11 years ago
  • 0.2.1                                ...           12 years ago
  • 0.2.0                                ...           12 years ago
  • 0.1.1                                ...           13 years ago
  • 0.1.0                                ...           13 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |