{"name":"time-span","version":"3.0.0","description":"Simplified high resolution timing","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/time-span.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["time","span","elapsed","process","hrtime","highres","timing","perf","performance","bench","benchmark","profiling","measure","seconds","milliseconds","nanoseconds"],"dependencies":{"convert-hrtime":"^2.0.0"},"devDependencies":{"ava":"^1.3.1","delay":"^4.1.0","in-range":"^1.0.0","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"a2644fd24f587545ac6a5396956c2c4aadf0401c","bugs":{"url":"https://github.com/sindresorhus/time-span/issues"},"homepage":"https://github.com/sindresorhus/time-span#readme","_id":"time-span@3.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.8.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-436XxRlp92x+dNY+kmNFLaXH2WkwClYc9QessUNJHCYgPCqmbtA5gnfOfZZIBgfMWdYAYPGOoaOc0WQ5b5jiRA==","shasum":"75957f8754c64e9245394fa22d7f788e1c7e4e86","tarball":"http://registry-npm.ywwl.com/time-span/download/time-span-3.0.0.tgz","fileCount":5,"unpackedSize":3652,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcgh0+CRA9TVsSAnZWagAAZNYP/jf5e6cU1jp65TXPqF84\nV/iE/iyIXgWIo0cF1Fp5tnlSPMOYOQekeRZBN+iGjhllwNZkKxvMA6dAY77P\nKPiRaPWeEs91azP/Gl/ZxFv33HP87yXsAj41sAHtjoHg97CaaXlQtn0MTPXZ\nvX1v48SIcOclZXD6oG8XmgkEEDTuaZ9JSbxeIcrwv1/D2EH1D5/hvl5zmwTn\nEBzb5WRtQpICn/TDxlioq5juaYTg2mH8ByxFj+ILM/utJUp9jWWg40/0LNMV\nvq0+fLQEP5XHqpfXq5TtPHRVACi77bh/ZeZsYx/AXXfE7OhuWSjymamYPvN5\nr4JjHfddTLPQDD6/7ZFP2z/uLxDKv4cj+xT5fwzkifltyk7tpKUQIyE7hrlb\nz0nz3j+lKiKUmmRqDmTu9De44T5WBrKuhboRxQef4O1G7Is5DBdPaM1LPg3x\njXU26rZQ+7XxbMIwPbuMmQqf3+JCiSv49ADMQPqqrSgvm3nONbqCMeRSNMtF\nSbHfgiuJi7gbNP+GtOdwRVZMaRIJd7jIiT8rJKJy38K9pylq6z2+PR/maitJ\nhluy/tRfC7rUuklqPlqEOdc8w/JypKnEKeuw8nzUNXQ/FafaHuHJCEGVti5n\nFES0VEPWYhtideo9SgSGSyuzA8ypDnKrTWTrxvhp+050gfjke2ssidtQZV3m\nI0Ks\r\n=y78/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHvK+nJrhc3KPeFplCKSTDCSbqJJsbzR4QIvQgB6OJqvAiEAugCSfwqC105aj5BL9rOOkvMBMz69dsheScoL0DGaDGY="}],"size":1824,"noattachment":false,"key":"/time-span/-/time-span-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/time-span_3.0.0_1552031037769_0.2444734873241401"},"_hasShrinkwrap":false,"readme":"# time-span\n\n> Simplified high resolution timing\n\nUses [`process.hrtime`](https://nodejs.org/api/process.html#processhrtimebigint) in Node.js and [`performance.now`](https://developer.mozilla.org/en-US/docs/Web/API/Performance/now) in browsers ([accurate to 5 microseconds](https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp)).\n\n## Install\n\n```\n$ npm install time-span\n```\n\n## Usage\n\n```js\nimport timeSpan from 'time-span';\n\nconst end = timeSpan();\n\ntimeConsumingFn();\n\nconsole.log(end());\n//=> 1745.3186\n\nconsole.log(end.rounded());\n//=> 1745\n\nconsole.log(end.seconds());\n//=> 1.7453186\n```\n\n## API\n\n### `const end = timeSpan()`\n\nReturns a function, that when called, returns the time difference.\n\n#### end()\n\nElapsed milliseconds.\n\n#### end.rounded()\n\nElapsed milliseconds rounded.\n\n#### end.seconds()\n\nElapsed seconds.\n\n#### end.nanoseconds()\n\nElapsed nanoseconds.\n","publish_time":1552031037879,"_cnpm_publish_time":1552031037879,"dist-tags":{"latest":"5.1.0"}}