{"name":"microtime","version":"3.0.0","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":">= 4.0.0"},"scripts":{"install":"node-gyp-build","rebuild":"node-gyp rebuild","prebuild":"prebuildify -t 8.14.0 -t electron@3.0.0 --napi --strip","download-prebuilds":"prebuildify-ci download","prebuildify-cross-armv7":"prebuildify-cross --platform=linux --arch=arm --arm-version=7 -- -t 8.14.0 --napi --strip","test":"node test.js","format":"clang-format -i src/microtime.cc","lint-test":"standard && clang-format -output-replacements-xml src/microtime.cc | (! grep -q '<replacement ') && node test.js"},"dependencies":{"node-addon-api":"^1.2.0","node-gyp-build":"^3.8.0"},"devDependencies":{"clang-format":"^1.2.4","node-gyp":"^3.8.0","prebuildify":"^2.11.0","prebuildify-ci":"^1.0.4","prebuildify-cross":"^3.1.2","standard":"^12.0.1"},"gypfile":true,"gitHead":"c1e3617606143ddb1dd056e270d2b7bbe9525549","bugs":{"url":"https://github.com/wadey/node-microtime/issues"},"_id":"microtime@3.0.0","_npmVersion":"6.5.0","_nodeVersion":"11.8.0","_npmUser":{"name":"wadey","email":"wade@wades.im"},"dist":{"integrity":"sha512-SirJr7ZL4ow2iWcb54bekS4aWyBQNVcEDBiwAz9D/sTgY59A+uE8UJU15cp5wyZmPBwg/3zf8lyCJ5NUe1nVlQ==","shasum":"d140914bde88aa89b4f9fd2a18620b435af0f39b","tarball":"http://registry-npm.ywwl.com/microtime/download/microtime-3.0.0.tgz","fileCount":15,"unpackedSize":419529,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWKpfCRA9TVsSAnZWagAAub0P/ilPls6ws8RssDGqlbYA\nMyHcVlfmKY4D5BTrqDJQX8XM+94JvXMXza3a5Aq85sfYHSuJxVrMK4Ng+WGK\nKa20KMA3HcS1Ubzy1ukjfXqnuqfy4Vmiuo6099fg0omeC4pBvf3raEZxNyoT\nttjmcdMx4CmYGuwK8knpyLCW4Qh5BkJ/vlZF9bOdzcJ4lCUUN7aISI6x2e7h\n8k7C9DuhqXSaVhE2mlJHvD4AzI58Mx3lSLlIRaPfPt68tJWVsSKVR487oBuT\n0YzaS2DogTb7jJzOBKns6D8krP3IVZa8v4CmvaNQRlZR7SAMtLuPn2QdlaKd\nD8MePuhO2xzUvtZXGw41Fw20hqa6hAdcbywO6vCVZH1yQTAbdTZa7g4vwKLd\n4QujSL9X25GIuWTYhPXI0VP5DHcxhUXdUCuYIZh4V7Wg51bhT3XpLXfjFHYy\nZh3BTvn90Snogoshg1R7fFtt8OQbHAOEpmLbxZcbQsXMOt0NrgeEYNl1nJ8F\nxX84pm1tXRuxxhvvVR2diquWtixezrZNKZ2TH5Con7+BQ+XGBQ7jCzuFFw8S\nFFhxmhTbu/yxgwEAXVuiWEAWUyAIMNLHG7yWtrGbW8wOkEA4PdoeOk+sxgX9\n1WjVtW3V7lOfFzX74FEey53+POLnwd9FmAwHQx0EOPKTdd5R/WG1stArpQ1b\nCOmK\r\n=Juw5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEznFywWett91FxFktJ95Debm77MgNJltdapWOmXDy8/AiBkJlasrNg2jLyGPD0DAhVX4aFG2i1Vu8mQGS1sslFizQ=="}],"size":178459,"noattachment":false,"key":"/microtime/-/microtime-3.0.0.tgz"},"maintainers":[{"name":"wadey","email":"wade@wades.im"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/microtime_3.0.0_1549314654385_0.9318512937988435"},"_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":1549314654551,"_cnpm_publish_time":1549314654551,"dist-tags":{"latest":"4.0.1","n-api":"3.0.0-1"}}