{"_id":"convert-hrtime","_rev":"288926","name":"convert-hrtime","description":"Convert the result of `process.hrtime.bigint()` to seconds, milliseconds, nanoseconds","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T18:46:00.000Z","created":"2015-12-10T19:55:33.074Z","5.0.0":"2021-04-14T07:31:22.271Z","4.0.0":"2021-04-07T18:19:06.439Z","3.0.0":"2019-04-09T05:46:08.200Z","2.0.0":"2017-05-23T05:59:17.115Z","1.0.0":"2015-12-10T19:55:33.074Z"},"users":{"focusaurus":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/convert-hrtime.git"},"versions":{"5.0.0":{"name":"convert-hrtime","version":"5.0.0","description":"Convert the result of `process.hrtime.bigint()` to seconds, milliseconds, nanoseconds","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/convert-hrtime.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["process","hrtime","time","highres","performance","bench","benchmark","measure","seconds","milliseconds","nanoseconds"],"devDependencies":{"@types/node":"^14.14.37","ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"d5e2dd5f3d092f5d1d44efaa7dc2c3dca694863b","bugs":{"url":"https://github.com/sindresorhus/convert-hrtime/issues"},"homepage":"https://github.com/sindresorhus/convert-hrtime#readme","_id":"convert-hrtime@5.0.0","_nodeVersion":"15.12.0","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f2131236d4598b95de856926a67100a0a97e9fa3","size":1629,"noattachment":false,"key":"/convert-hrtime/-/convert-hrtime-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/convert-hrtime/download/convert-hrtime-5.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convert-hrtime_5.0.0_1618385482073_0.8417174348244545"},"_hasShrinkwrap":false,"publish_time":1618385482271,"_cnpm_publish_time":1618385482271},"4.0.0":{"name":"convert-hrtime","version":"4.0.0","description":"Convert the result of `process.hrtime.bigint()` to seconds, milliseconds, nanoseconds","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/convert-hrtime.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["process","hrtime","time","highres","performance","bench","benchmark","measure","seconds","milliseconds","nanoseconds"],"devDependencies":{"@types/node":"^14.14.37","ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"e2f8fae2c50c507aa77c9ef89419a0c4dd3aed34","bugs":{"url":"https://github.com/sindresorhus/convert-hrtime/issues"},"homepage":"https://github.com/sindresorhus/convert-hrtime#readme","_id":"convert-hrtime@4.0.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7aad75f91d64a1550e95f58d72a2c211092067a5","size":1617,"noattachment":false,"key":"/convert-hrtime/-/convert-hrtime-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/convert-hrtime/download/convert-hrtime-4.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convert-hrtime_4.0.0_1617819546314_0.23079980469665307"},"_hasShrinkwrap":false,"publish_time":1617819546439,"_cnpm_publish_time":1617819546439},"3.0.0":{"name":"convert-hrtime","version":"3.0.0","description":"Convert the result of `process.hrtime()` to seconds, milliseconds, nanoseconds","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/convert-hrtime.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["process","hrtime","time","highres","perf","performance","bench","benchmark","measure","seconds","milliseconds","nanoseconds"],"devDependencies":{"@types/node":"^11.13.2","ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"a83280442033d1dfa693ddc63cd86c20794f205f","bugs":{"url":"https://github.com/sindresorhus/convert-hrtime/issues"},"homepage":"https://github.com/sindresorhus/convert-hrtime#readme","_id":"convert-hrtime@3.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"62c7593f5809ca10be8da858a6d2f702bcda00aa","size":1651,"noattachment":false,"key":"/convert-hrtime/-/convert-hrtime-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/convert-hrtime/download/convert-hrtime-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convert-hrtime_3.0.0_1554788768082_0.04219890973629137"},"_hasShrinkwrap":false,"publish_time":1554788768200,"_cnpm_publish_time":1554788768200},"2.0.0":{"name":"convert-hrtime","version":"2.0.0","description":"Convert the result of `process.hrtime()` to seconds, milliseconds, nanoseconds","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/convert-hrtime.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["process","hrtime","time","highres","perf","performance","bench","benchmark","measure","seconds","milliseconds","nanoseconds"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"1c4a3a29c1a521820583dc4f63a3f4eda78f8552","bugs":{"url":"https://github.com/sindresorhus/convert-hrtime/issues"},"homepage":"https://github.com/sindresorhus/convert-hrtime#readme","_id":"convert-hrtime@2.0.0","_shasum":"19bfb2c9162f9e11c2f04c2c79de2b7e8095c627","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"19bfb2c9162f9e11c2f04c2c79de2b7e8095c627","size":1522,"noattachment":false,"key":"/convert-hrtime/-/convert-hrtime-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/convert-hrtime/download/convert-hrtime-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convert-hrtime-2.0.0.tgz_1495519157011_0.7980234669521451"},"directories":{},"publish_time":1495519157115,"_hasShrinkwrap":false,"_cnpm_publish_time":1495519157115},"1.0.0":{"name":"convert-hrtime","version":"1.0.0","description":"Convert the result of `process.hrtime()` to seconds, milliseconds, nanoseconds","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/convert-hrtime.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["process","hrtime","time","highres","perf","performance","bench","benchmark","measure","seconds","milliseconds","nanoseconds"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"ed4b6f39da5b6956f3bc581e41b5ef2b0340e8e7","bugs":{"url":"https://github.com/sindresorhus/convert-hrtime/issues"},"homepage":"https://github.com/sindresorhus/convert-hrtime#readme","_id":"convert-hrtime@1.0.0","_shasum":"6b466d53f6df1b658f496575cd9a48262a5ca557","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6b466d53f6df1b658f496575cd9a48262a5ca557","size":1530,"noattachment":false,"key":"/convert-hrtime/-/convert-hrtime-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/convert-hrtime/download/convert-hrtime-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1449777333074,"_cnpm_publish_time":1449777333074,"_hasShrinkwrap":false}},"readme":"# convert-hrtime\n\n> Convert the result of [`process.hrtime.bigint()`](https://nodejs.org/api/process.html#process_process_hrtime_bigint) to seconds, milliseconds, nanoseconds\n\n## Install\n\n```\n$ npm install convert-hrtime\n```\n\n## Usage\n\n```js\nimport convertHrtime from 'convert-hrtime';\n\nconst startTime = process.hrtime.bigint();\nexpensiveCalculation();\nconst diff = process.hrtime.bigint() - startTime;\n\nconvertHrtime(diff);\n//=> {seconds: 0.000002399, milliseconds: 0.002399, nanoseconds: 2399n}\n```\n","_attachments":{},"homepage":"https://github.com/sindresorhus/convert-hrtime#readme","bugs":{"url":"https://github.com/sindresorhus/convert-hrtime/issues"},"license":"MIT"}