{"name":"microtime","version":"2.1.9","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.1","nan":"2.12.x","prebuild-install":"^5.2.2"},"devDependencies":{"clang-format":"^1.2.4","prebuild":"^8.1.2","prebuild-ci":"^2.3.0","standard":"^12.0.1"},"gitHead":"9845b5bf7c9aad9df417a0d84bfb94e3e9d52cfe","bugs":{"url":"https://github.com/wadey/node-microtime/issues"},"_id":"microtime@2.1.9","_npmVersion":"6.5.0","_nodeVersion":"11.8.0","_npmUser":{"name":"wadey","email":"wade@wades.im"},"dist":{"integrity":"sha512-p3ZEcEHs220fl7kZd+Z4NParEuwE6WR02tlQ8sDIOJyiRYfDofxTMJYNBi5ZTOHzyGObsZnPmvvFim9vuDMdOw==","shasum":"f4073289599ef4dd1a673f2b1fe6f9c9502f784e","tarball":"http://registry-npm.ywwl.com/microtime/download/microtime-2.1.9.tgz","fileCount":9,"unpackedSize":9945,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcTLypCRA9TVsSAnZWagAAn20P/1vrJzMfYlm5DIGlvYsj\n5cFdmMnyrEt7h43RFBhKWd5V2AHABM3BKggHxGYzZKOElN/FWVpeYpPp7piq\ntOfKus9sqqV3hTEr4QF7Vjf6wtZZo2dcAa1kQt8L7cNIcz7Kaqi5q3ViaKzh\n1yhIQKz5PwaFEaW7APTx9VXbXrINfQwdqhO3hDClTRKvS9aAQVxKC+MlGG1K\ni5vKOp5vRIlfQeW+E+GuveSzBRaQo2LfBFgq064KsBxmAQEDHSiWNSqNW5CE\nQeTWiU1eBIC1yjXsX7xXsAc9bAFgAfCweyoZ+ixI+LxAkgQj5EHEU3q4neWe\n8N8fJYt5wUmNu2oKueEKv+aYUcDlFaz7alfP4cBjQuCwAbXuErFTYDkp6ZbB\n8vYJr65aL2bCI9E7tLGDDiGjzYr21cA6gpSgnYrL1vtpFXn5G2099SBWJVvH\nsoVn83MawbpN+v5pDnXuubEmDShMcIURsd7Q3FYZq5WIGRIdkYXcgEFKhRXQ\n/I0qBw2t9aEwiv5MKmKjF+nWAnqGizF68cDyx9XHI8zGU5uETRLqt2FmagnV\nLlz0ghIIQOe4JDoCjRsnaNqdKrYKhmcev+ptQetqH0asOdWmZrjgMJL2FSox\nzff0GkOYCT8S2WudRMpuZ9w55q2Vkb4El/a+lFQMYDlNQA+HD8D3SJqVafbU\nOGGH\r\n=3r9a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBxb0ODy9TpJO5SKn2nPOb7TedgaR/5ilT0ChhfI0r5QAiEAmbFNFzD6DRL8CtOMFlcMSpZJwHibzfNig8HTajikIlM="}],"size":4452,"noattachment":false,"key":"/microtime/-/microtime-2.1.9.tgz"},"maintainers":[{"name":"wadey","email":"wade@wades.im"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/microtime_2.1.9_1548532905300_0.07739763712099035"},"_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":1548532905419,"_cnpm_publish_time":1548532905419,"dist-tags":{"latest":"4.0.1","n-api":"3.0.0-1"}}