{"name":"microtime","version":"2.1.4","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","binary":{"module_name":"microtime","module_path":"./build/Release/","host":"https://github.com","remote_path":"./wadey/node-microtime/releases/download/v{version}/","package_name":"{node_abi}-{platform}-{arch}.tar.gz"},"engines":{"node":">= 0.8.0"},"scripts":{"install":"node-pre-gyp install --fallback-to-build --loglevel http","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":{"node-pre-gyp":"0.6.X","bindings":"1.2.x","nan":"2.6.x"},"devDependencies":{"clang-format":"^1.0.38","standard":"^10.0.1"},"gitHead":"7ced38d636996f4288df538e26bb88c9b5d5acd3","bugs":{"url":"https://github.com/wadey/node-microtime/issues"},"_id":"microtime@2.1.4","_shasum":"e50de540b7d1b756544a808db87544edc88a4d04","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.2","_npmUser":{"name":"wadey","email":"wade@wades.im"},"dist":{"shasum":"e50de540b7d1b756544a808db87544edc88a4d04","tarball":"http://registry-npm.ywwl.com/microtime/download/microtime-2.1.4.tgz","integrity":"sha512-8lG/xnfPLXc9w/edk8G57hntqorbHaIav/0OPQ8Z7nuyuTVIzhY6TMmXw3M4WjPomoWfD4MIpsqm2EUGQgACeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQ9pIbySvBvuW2R6e7anueH7AvhRuRkrU92GvccC0DpwIhAPbqTU8faw4liGskdZ7qj706P/nZvv3HBlevvotAfEm7"}],"size":4848,"noattachment":false,"key":"/microtime/-/microtime-2.1.4.tgz"},"maintainers":[{"name":"wadey","email":"wade@wades.im"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/microtime-2.1.4.tgz_1496339169672_0.5886195518542081"},"directories":{},"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":1496339170607,"_cnpm_publish_time":1496339170607,"dist-tags":{"latest":"4.0.1","n-api":"3.0.0-1"}}