{"bugs":{"url":"https://github.com/wadey/node-microtime/issues"},"dist":{"shasum":"77cc708340150e566dff78bc4c62ee603ee8f303","tarball":"https://registry.npmjs.org/microtime/-/microtime-3.0.0-1.tgz","fileCount":18,"integrity":"sha512-48COgFwejUrPJIpzmjeSgcTmBq7wFmCjekmXLg1LlosNSR8DPBtjVaRL9Q1JzxONbheUUCAtrXcmqTcPRjUxYQ==","signatures":[{"sig":"MEQCIHohKPa0FkpeYrftMZhrWzlpU0T1/TTzPyLGlmG4oFQMAiB0eMb0LBq0TM1a/xhN07V6Wa99jGAvFae/Pvwp3aZ+Lw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":422113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUnYPCRA9TVsSAnZWagAAK+4QAIIkLP8hC+9Ph2CVQahU\nX5jUANX0vSvQSVFh8aLD7dYLedN19STZQ+9ckJqMI+YuZfXqlNmTkMFb1CPy\ne1LzGL9NZh9jMq8RIiy8kkIaej5X/rqcG2vgrM0XE6loEOZDiMDZGzX53bLh\n77o7SDSqn9a6w1JC/zoD8DxLdBNxVGszhhQSyReX2hHB3GCDnFN51qVILNlq\naLfsCyUdrdMNHp2Fj+JC7qSOSzrowHSpDBKDa7rIfSHs20a0DAMP0LZAlPbi\nFP6nPVKG4TbG9E3hqg6UBI5uzj+d7TaBUfxz3iNhBtY3hO+Ls55zDxdgwERk\nZDRAtu2nSjOuZY8XdKjdccfJUXXSnmypBQ9uBu7UFERV09H+ytKFu6raHt4Z\nh+uLhq5/sAIMkHbzmr0XbXouooJyTBNEC9SRHLZ/Is4SpjCP3BI2c51Nchfj\ns2HCf1ns012cQVUq63ilCrLZ7IFaP9kXWHbdZp+2B0qeUVbjl5Ysh4ADDo/R\nMSfOjtQfmrt/h0hmZ7lGhI/8lfjSLgrSl5cQZs8Id4A29WFX7+UC59V2EPlh\nM9lPe/EdDnyykiFAaq6wYGwA0o4TODZg3wdElt5rvciZIrA1hA7+hAcTGaJB\n2g9qHU8MAzir5zfoyVkLxa31p2QE3FJoEAWKnn4lpzKz1JksnC+KOWVL/99O\nw5y1\r\n=IlgI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index","name":"microtime","author":{"url":"http://wades.im/mons","name":"Wade Simmons","email":"wade@wades.im"},"readme":"# node-microtime\n\n[![Travis Build](https://img.shields.io/travis/wadey/node-microtime/master.svg?label=linux,%20os%20x)](https://travis-ci.org/wadey/node-microtime)\n[![AppVeyor Build](https://img.shields.io/appveyor/ci/WadeSimmons/node-microtime/master.svg?label=windows)](https://ci.appveyor.com/project/WadeSimmons/node-microtime)\n[![npm](https://img.shields.io/npm/dm/microtime.svg)](https://www.npmjs.com/package/microtime)\n[![npm](https://img.shields.io/npm/v/microtime.svg)](https://www.npmjs.com/package/microtime)\n\nDate.now() will only give you accuracy in milliseconds. This module calls\n`gettimeofday(2)` to get the time in microseconds and provides it in a few\ndifferent formats. The same warning from that function applies:\n_The resolution of the system clock is hardware dependent, and the time may\nbe updated continuously or in ``ticks.''_\n\n# Installation\n\n    npm install microtime\n\n# Usage\n\n### microtime.now()\n\nGet the current time in microseconds as an integer. Since JavaScript can only\nrepresent integer values accurately up to `Math.pow(2, 53)`, this value will\nbe accurate up to _Tue, 05 Jun 2255 23:47:34 GMT_.\n\n### microtime.nowDouble()\n\nGet the current time in seconds as a floating point number with microsecond\naccuracy (similar to `time.time()` in Python and `Time.now.to_f` in Ruby).\n\n### microtime.nowStruct()\n\nGet the current time and return as a list with seconds and microseconds (matching the return value of `gettimeofday(2)`).\n\n# Example\n\n    > var microtime = require('microtime')\n    > microtime.now()\n    1297448895297028\n    > microtime.nowDouble()\n    1297448897.600976\n    > microtime.nowStruct()\n    [ 1297448902, 753875 ]\n\n## Estimating clock resolution\n\nStarting with version 0.1.3, there is a test script that tries to guess the clock resolution. You can run it with `npm test microtime`. Example output:\n\n    microtime.now() = 1298960083489806\n    microtime.nowDouble() = 1298960083.511521\n    microtime.nowStruct() = [ 1298960083, 511587 ]\n\n    Guessing clock resolution...\n    Clock resolution observed: 1us\n\n## Warning for Cygwin users\n\nIt appears that Cygwin only implements `gettimeofday(2)` with [millisecond accuracy](http://old.nabble.com/gettimeofday---millisecond-accuracy-p21085475.html).\n","engines":{"node":">= 4.0.0"},"gitHead":"a234b592161929024d8624625de1f871dc63bd6e","gypfile":true,"license":"MIT","scripts":{"test":"node test.js","format":"clang-format -i src/microtime.cc","install":"node-gyp-build","rebuild":"node-gyp rebuild","prebuild":"prebuildify -t 8.14.0 -t electron@3.0.0 --napi --strip","lint-test":"standard && clang-format -output-replacements-xml src/microtime.cc | (! grep -q '<replacement ') && node test.js","download-prebuilds":"prebuildify-ci download","prebuildify-cross-armv7":"prebuildify-cross --platform=linux --arch=arm --arm-version=7 -- -t 8.14.0 --napi --strip"},"_npmUser":{"name":"wadey","email":"wade@wades.im"},"homepage":"https://github.com/wadey/node-microtime","keywords":["microtime","microseconds","gettimeofday"],"repository":{"url":"git://github.com/wadey/node-microtime.git","type":"git"},"_npmVersion":"6.5.0","description":"Get the current time in microseconds","directories":{},"maintainers":[{"name":"wadey","email":"wade@wades.im"}],"_nodeVersion":"11.9.0","dependencies":{"node-addon-api":"^1.2.0","node-gyp-build":"^3.8.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"node-gyp":"^3.8.0","standard":"^12.0.1","prebuildify":"^2.11.0","clang-format":"^1.2.4","prebuildify-ci":"^1.0.4","prebuildify-cross":"^3.1.2"},"_npmOperationalInternal":{"tmp":"tmp/microtime_3.0.0-1_1548908047002_0.7166083252599862","host":"s3://npm-registry-packages"},"_id":"microtime@3.0.0-1","version":"3.0.0-1"}