{"name":"microtime","version":"3.1.1","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":">= 14.13.0"},"scripts":{"install":"node-gyp-build","rebuild":"node-gyp rebuild","prebuild":"prebuildify -t 14.13.0 -t electron@18.2.0 --napi --strip","prebuild-linux-x64":"prebuildify -t 14.13.0 -t electron@18.2.0 --napi --strip","prebuild-linux-arm":"prebuildify-cross -i linux-armv7 -t 14.13.0 --napi --strip","prebuild-linux-arm64":"prebuildify-cross -i linux-arm64 -t 14.13.0 --napi --strip","prebuild-darwin-x64+arm64":"prebuildify -t 14.13.0 -t electron@18.2.0 --arch x64+arm64 --napi --strip","prebuild-win32-x64":"prebuildify -t 14.13.0 -t electron@18.2.0 --napi --strip","prebuild-win32-x86":"prebuildify -t 14.13.0 -t electron@18.2.0 --napi --strip","download-prebuilds":"prebuildify-ci download","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":"^5.0.0","node-gyp-build":"^4.4.0"},"devDependencies":{"clang-format":"^1.8.0","node-gyp":"^9.0.0","prebuildify":"^5.0.0","prebuildify-ci":"^1.0.5","prebuildify-cross":"^5.0.0","standard":"^12.0.1"},"gypfile":true,"gitHead":"c6ce571579d5c3da2b346e53e91722e5763bfebc","bugs":{"url":"https://github.com/wadey/node-microtime/issues"},"_id":"microtime@3.1.1","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-to1r7o24cDsud9IhN6/8wGmMx5R2kT0w2Xwm5okbYI3d1dk6Xv0m+Z+jg2vS9pt+ocgQHTCtgs/YuyJhySzxNg==","shasum":"f3ce12f4091c55fb2982c87205e2e7698afdcd0c","tarball":"http://registry-npm.ywwl.com/microtime/download/microtime-3.1.1.tgz","fileCount":19,"unpackedSize":2749222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDd9FvegVcnQTN83VDOSXm1XJ7zvXAwewqM+jJNaccxIQIgcZsbvY/Fcuip56ToUKC3Ok5wwy/v3pAM5FZl4XrPfMk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9bL+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp2BxAAjhcYLoDCa+37+Rsl+5yAPqSCYT+lim2X/fex3BsdHoEXUNDc\r\nFN6gD4oUbJ0Evo+uRtrZXBa+3Wwl/DtFDi2HTmvftmuxp8oMSkuUDbvQbEKE\r\nam2Gxfpi4RBVf7ECviMMpsXTyBj88uZQVcKKq2vyH5PrzF8smXDzpgm+A+FM\r\nk0Tos2+d07Lbbuh1gcDVTJQ6OFXU4KjhRtMD9v+0laUAlWhMVhsap7Z5aXlQ\r\nUr3YgfD5Bn7unK25Tc7sjzwMaY52RWwADKOdemghAVJBhUNwtrrOLjMT9APw\r\nQ0VVbs6nMBdmyFvlO+QIlHE5Xmxi1azH+6SzFupLICiHCFqdclzsjPvZB2ZL\r\nhjRPh9+/fLRl+uSdYa1yZRAutPTILB8p9fEkxl8DpKJY6uoNEG5ZVeO3IkL3\r\nlXUhif/8yXMBzssfU98JyhP75G/YCLkX4jITtiwMAvM9PtOKfxqyy9jHeMI8\r\nWvFe0GDqKL3ScvqgEIQ8hajP7oOAwfw5TCBk7B/nfEkeBlfWou+xK+m6uhQ0\r\ni9IWlYw9+xjAJnft1r7Jfq7nENKtAGJO9O0oSR1icTpA7gA5L7oyF0HBtUbF\r\nJI/ldnOLuzmykwSo2QczPxjQZjBQaJtZUfoE6u3/q6nRNiMgY7ed8EN8c9dC\r\nxGy3CVP/iic/280XUgfc94bl7xt0KLYCPfg=\r\n=/JJf\r\n-----END PGP SIGNATURE-----\r\n","size":847474,"noattachment":false,"key":"/microtime/-/microtime-3.1.1.tgz"},"_npmUser":{"name":"wadey","email":"wade@wades.im"},"directories":{},"maintainers":[{"name":"wadey","email":"wade@wades.im"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/microtime_3.1.1_1660269310748_0.48152047577486856"},"_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":1660269310939,"_cnpm_publish_time":1660269310939,"dist-tags":{"latest":"4.0.1","n-api":"3.0.0-1"}}