{"name":"time-span","version":"1.0.0","description":"Simplified high resolution timing","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/time-span"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["time","span","elapsed","process","hrtime","highres","timing","perf","performance","bench","benchmark","profiling","measure","seconds","milliseconds","nanoseconds"],"dependencies":{"convert-hrtime":"^1.0.0"},"devDependencies":{"ava":"*","delay":"^1.1.0","in-range":"^1.0.0","xo":"*"},"xo":{"ignores":["test.js"]},"gitHead":"ea9533c0818583dd973fc4235bcce08e77bde0b0","bugs":{"url":"https://github.com/sindresorhus/time-span/issues"},"homepage":"https://github.com/sindresorhus/time-span","_id":"time-span@1.0.0","_shasum":"a76131cce8f12672a5a6a7a248367a5664a2d174","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a76131cce8f12672a5a6a7a248367a5664a2d174","tarball":"http://registry-npm.ywwl.com/time-span/download/time-span-1.0.0.tgz","integrity":"sha512-XOlX0eaDgGnu451DX3QvtZUZY/vqtp6yTmfJGurXU9mQOikizEdyFWDHbeFmG5PXFOikTecKove0RQVANFjTrg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCslLt2pFpVmcIfsGY6Z2ErcncoNIj/P5tOnePOjrmgdwIgZx/ck0iCK43IHGdKGC0BKkrgSuUfcRVWW2BsI2xfV/0="}],"size":1715,"noattachment":false,"key":"/time-span/-/time-span-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"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":1449779174540,"_cnpm_publish_time":1449779174540,"dist-tags":{"latest":"5.1.0"}}