{"name":"time-span","version":"2.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":">=4"},"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":"^2.0.0"},"devDependencies":{"ava":"*","delay":"^2.0.0","in-range":"^1.0.0","xo":"*"},"gitHead":"f96cf85047bd18d437c28be8ea628a1e31698ba2","bugs":{"url":"https://github.com/sindresorhus/time-span/issues"},"homepage":"https://github.com/sindresorhus/time-span#readme","_id":"time-span@2.0.0","_shasum":"e7624a37917a49729dbf3b7c47c5b799440e532f","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"e7624a37917a49729dbf3b7c47c5b799440e532f","tarball":"http://registry-npm.ywwl.com/time-span/download/time-span-2.0.0.tgz","integrity":"sha512-GEhzxRIClE9VrBMWzJ4hI2sXMlIKAYI6wUmba8hHuSc+hGaDM9o1avj1WVAsWiZGDmrWxIKi+bdS15xsluvLGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHxfUcuSMgERa3g0uNHV9S42LzB3ShTGPcxiXkqX9SEtAiAmgRpHTS5I6NDFispx0t9Bg6n+Ng3zI9nWc+v9r4uTYQ=="}],"size":1672,"noattachment":false,"key":"/time-span/-/time-span-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/time-span-2.0.0.tgz_1495519406864_0.48803993011824787"},"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":1495519406943,"_cnpm_publish_time":1495519406943,"dist-tags":{"latest":"5.1.0"}}