{"bugs":{"url":"https://github.com/wadey/node-microtime/issues"},"dist":{"shasum":"a517d546689f02c7108729a205528be644d4a1cb","tarball":"https://registry.npmjs.org/microtime/-/microtime-3.0.0-0.tgz","fileCount":17,"integrity":"sha512-0Z8TFpVjVz3//O5EebFaDHOFxqwKqeZ7OegBkb4YhoI3grjWC5Wh/A52tX3voYiKQFGedGXIkzubRiabf4SWSA==","signatures":[{"sig":"MEUCIGytOSEbX5JGzBpB/VjLRPUGQZSDySs6dxh/ODmeIB73AiEA5JNH6glFU5CG6VtIprjvdhKCmD3XI7G7jYZ+zTe4eFI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":421057,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcTzGkCRA9TVsSAnZWagAA98YQAKErB+pJuUFkp8yy+lcO\n2znmsHVrVEgM8AJh44+VOdEO1CF35ZpCZbNRfxhb+f85zDHXeEa2kYMNMXL1\nCT6hBXJey9DrhPQCCXtOf+WZM9inbZSu5vnGL5MFZXqrLnB0PkMVG5PA/N3l\nVY8GKGv9stOSEHv4HFq4iGb/doWjtxm2nHSLpe0TYVTYdCJSbEpAqS4ttO5O\nqbtZ0Gd6IgPex92nMsvqwRvP1gmALOpnvrqbyS8M1CDTrFGfBLXC6/RG/0wW\nQSQ8/cKxZdwzzdzAc7wBJS7LNE3JCKbUt+Ivdo8h3jfrsLO2rY8rYCLyC4cl\nTmH85IjZ3oZxlN7oZz94iwRa3KleGjR1E4cTw14nhh/lBGhc8c85hd0+vK9H\nmUAcjvVXmkc4lUcx+/lZsFEqhW8Y348Qu67tuov/m0SncrYmQDJiM4Iy/CCw\n16bDNZj3N+K5fmH2+KdiGkIiQWUTtWwfAZmMp/e8YVL8H3SOp0v+lGgGA86K\nVCbvfOOwQg+ENhZiUK/epJwnIauEDYl2W5wEE8w5hPtMQASWkYjIFC24Sz9p\n8Tq9stvxl6Y00ha3N3RMfLv/WlKTv86SjVtgIBDQS9kB+8l7Vo3Wb4MssVZM\noXpB65t4Lb82xZN/I+11/Aaw8jNREOUY3qbv1A7bi4ZGqXEEN52DXuKpdyUO\nCzu7\r\n=JXml\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":">= 8.6.0"},"gitHead":"b2931c86a10458207fb9f9a34afc3a11a2685bd8","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.4.1","description":"Get the current time in microseconds","directories":{},"maintainers":[{"name":"wadey","email":"wade@wades.im"}],"_nodeVersion":"10.15.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-0_1548693923643_0.927217706015236","host":"s3://npm-registry-packages"},"_id":"microtime@3.0.0-0","version":"3.0.0-0"}