{"name":"microtime","version":"2.1.8","description":"Get the current time in microseconds","author":{"name":"Wade Simmons","email":"wade@wades.im","url":"http://wades.im/mons"},"homepage":"https://github.com/wadey/node-microtime","repository":{"type":"git","url":"git://github.com/wadey/node-microtime.git"},"main":"./index","license":"MIT","keywords":["microtime","microseconds","gettimeofday"],"engines":{"node":">= 0.8.0"},"scripts":{"install":"prebuild-install || node-gyp rebuild","rebuild":"prebuild --compile","prebuild":"prebuild --all --strip --verbose","test":"node test.js","format":"clang-format -i src/microtime.cc","lint":"standard && clang-format -output-replacements-xml src/microtime.cc | (! grep -q '<replacement ')"},"dependencies":{"bindings":"1.3.x","nan":"2.10.x","prebuild-install":"^2.1.0"},"devDependencies":{"clang-format":"^1.2.1","standard":"^10.0.1","prebuild":"^7.0.0","prebuild-ci":"^2.2.3"},"gitHead":"f546ce30e1f2c40b1049f9b5dbeb1f4fd52149f3","bugs":{"url":"https://github.com/wadey/node-microtime/issues"},"_id":"microtime@2.1.8","_shasum":"b43c4c5ab13e527e173370d0306d9e0a4bbf410d","_from":".","_npmVersion":"2.15.11","_nodeVersion":"6.12.3","_npmUser":{"name":"wadey","email":"wade@wades.im"},"dist":{"shasum":"b43c4c5ab13e527e173370d0306d9e0a4bbf410d","tarball":"http://registry-npm.ywwl.com/microtime/download/microtime-2.1.8.tgz","fileCount":11,"unpackedSize":10225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa+5vyCRA9TVsSAnZWagAARlUP/3s5pksu/7C9+6vI/Eib\nMRO9EfWc8xcfVpTJqzkTdE/1gvSTlzy+SV27cM8c0v8JiZGK3tjiuUt+JJ/i\nRNBUO0hY9oBGYbFHzy+5r02feCiycuABG/w3R44TJJoG2lvMKVGUl3aZ4IHo\nKHDKVuoPlOXE1LJncHLFvgpckL8GaLGBpKytr7xIkMiQVZycgParQOQkOeKX\nW0K9GpzRqM4gG9DrWl3G1Pq6IZX+BpzVkexA8vBcpB08Mw2a9lBt3XK9VyQJ\nTrgKWTeKk15rKliUIw8MXanAfnE424690OmC256JCqwu9KbaSwJxx7b5ZRNz\nKB5suizmixtbOkiwb0Bs8ue6zWlu7kJ5SfCNlg/8dZoI8dm1gjkLYqTxeNEX\nZfYW18sk0EiA/n5CiFPDMjQqQjad4nbUfCDj6Vr9HfDvUfrbaPXjunkZkCAr\nV3XO/LKYN2Ja05yNq3Aeo0wDSoMwQSF00SSXWlwv/cWMEK1laiYV5CDo+1Ji\nt2czvscg53HHM/wx3tc2Q8XH7Zu6Cwnt/Xd7q+y4Pli5d5S84HaWM2PFEEFb\n8NS1rHyn53HhIsUXaEbwssZLTjctzl8+5h6JR/JDBl1MoGFU1Xv1Ux4c00Nu\ng7qvA84zQIeFct2o5mQ4Z0o4IpMo7iumM2dZk7QdQ9kfAb21CWY4XpcQjpIw\n/ero\r\n=Kpna\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-8VZztdwYPgotHVkAl3FjSeRRIUsZDPGoCEDjOsXbd+hXXL9LaLSOF4icq4oc+tHc691SKJkVBawn7cC2gE7X4A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxwfhMyYnE20Udyvjc6txLxYSevHviJQSh1vpBYvKDtwIhANOPX8ghktyZiDC+KHsRULn5eAbZn1JQaQYkejAkoBXt"}],"size":4701,"noattachment":false,"key":"/microtime/-/microtime-2.1.8.tgz"},"maintainers":[{"name":"wadey","email":"wade@wades.im"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/microtime_2.1.8_1526438897503_0.964115739135917"},"_hasShrinkwrap":false,"readme":"# node-microtime\n\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## N-API Support\n\nAs of version `3.0.0`, this library is built using the [N-API](https://nodejs.org/api/n-api.html) library. This should allow you to upgrade to newer versions of Node.js without having to reinstall / rebuild this library.\n\nVersion `3.0.0` and later also bundle prebuilt binaries for common systems in\nthe npm package itself. These will be used if the version of Node you are using\nsupports N-API ([>= v6.14.2](https://nodejs.org/api/n-api.html#n_api_n_api_version_matrix)), otherwise the binary will be recompiled on install.\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.\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","publish_time":1526438897646,"_cnpm_publish_time":1526438897646,"dist-tags":{"latest":"4.0.1","n-api":"3.0.0-1"}}