{"_id":"execution-time","_rev":"8-16fad9de03b01b9e49a1be6c51cde5e4","name":"execution-time","description":"ultility to measure execution time","dist-tags":{"latest":"1.4.1"},"versions":{"1.0.0":{"name":"execution-time","version":"1.0.0","description":"ultility to measure execution time","main":"index.js","scripts":{"test":"NODE_ENV=test NODE_PATH=./ mocha test/**/*-test.js"},"repository":{"type":"git","url":"git+https://github.com/svenkatreddy/execution-time.git"},"keywords":["hrtime","execution","time","performance","perf","speed"],"author":{"name":"Venkat Reddy"},"license":"ISC","bugs":{"url":"https://github.com/svenkatreddy/execution-time/issues"},"homepage":"https://github.com/svenkatreddy/execution-time#readme","devDependencies":{"mocha":"^3.4.2","sinon":"^2.3.2","ultimate-chai":"^3.1.0"},"dependencies":{"pretty-hrtime":"^1.0.3"},"gitHead":"6578c3ba36f72061c1cedcaee4f3256cf251e4f0","_id":"execution-time@1.0.0","_shasum":"dd33e996a64510a38c16e8d014735725e8c70ac5","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"svenkatreddynpm","email":"svenkatreddynpm@outlook.com"},"dist":{"shasum":"dd33e996a64510a38c16e8d014735725e8c70ac5","tarball":"https://registry.npmjs.org/execution-time/-/execution-time-1.0.0.tgz","integrity":"sha512-hxROCjGzQ0LzTeeStmluy1JZciv82nUqmr7YpUS6KoZdfpfcgBz0HQ2OJwOAQmp1Bs/NCnjVm1R8AXlT4lYvqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAfW4fmYlGU1b6H7l/k2Rt4QOlpOXy7NywK+PdAiHffKAiAppskH+vVzweJ65fL6WkRWMDz0654zcZWw15VWqmpyuQ=="}]},"maintainers":[{"name":"svenkatreddynpm","email":"svenkatreddynpm@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/execution-time-1.0.0.tgz_1495836196266_0.3906155114527792"},"directories":{}},"1.1.0":{"name":"execution-time","version":"1.1.0","description":"ultility to measure execution time","main":"index.js","scripts":{"test":"NODE_ENV=test NODE_PATH=./ mocha test/**/*-test.js"},"repository":{"type":"git","url":"git+https://github.com/svenkatreddy/execution-time.git"},"keywords":["hrtime","execution","time","performance","perf","speed"],"author":{"name":"Venkat Reddy"},"license":"ISC","bugs":{"url":"https://github.com/svenkatreddy/execution-time/issues"},"homepage":"https://github.com/svenkatreddy/execution-time#readme","devDependencies":{"mocha":"^3.4.2","sinon":"^2.3.2","ultimate-chai":"^3.1.0"},"dependencies":{"pretty-hrtime":"^1.0.3"},"gitHead":"70c3ce930cef1d8abdd3c559613eb74c04cf7398","_id":"execution-time@1.1.0","_shasum":"f5db31a29e9c95c1f81f1f919e8fae5ea4473ca6","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"svenkatreddynpm","email":"svenkatreddynpm@outlook.com"},"dist":{"shasum":"f5db31a29e9c95c1f81f1f919e8fae5ea4473ca6","tarball":"https://registry.npmjs.org/execution-time/-/execution-time-1.1.0.tgz","integrity":"sha512-7icXZ4PDYPEr/fdk0KQQoAmLzaCTKT6+nmcTcSj/tRFHb3TpNh1/5VyGyv3hx7kHjSnLoNUDOYU2c3zEvJ7doQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDK5liW2iMsCnlJKMGPmdJGcKzM2y+XIvN3lnUTQdPkAQIhANMVPKGKMWwS21W920ccTmd4iAA7rEeNluG80Klm0Jbl"}]},"maintainers":[{"name":"svenkatreddynpm","email":"svenkatreddynpm@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/execution-time-1.1.0.tgz_1495836610792_0.8767237062565982"},"directories":{}},"1.2.0":{"name":"execution-time","version":"1.2.0","description":"ultility to measure execution time","main":"index.js","scripts":{"test":"NODE_ENV=test NODE_PATH=./ mocha test/**/*-test.js"},"repository":{"type":"git","url":"git+https://github.com/svenkatreddy/execution-time.git"},"keywords":["hrtime","execution","time","performance","perf","speed"],"author":{"name":"Venkat Reddy"},"license":"ISC","bugs":{"url":"https://github.com/svenkatreddy/execution-time/issues"},"homepage":"https://github.com/svenkatreddy/execution-time#readme","devDependencies":{"mocha":"^3.4.2","sinon":"^2.3.2","ultimate-chai":"^3.1.0"},"dependencies":{"pretty-hrtime":"^1.0.3"},"gitHead":"300728318e7d3118496379931c53e0ee5379ce5a","_id":"execution-time@1.2.0","_shasum":"0fd3abf78f9661b7f969af34c2b5a7a7c42b67f6","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"svenkatreddynpm","email":"svenkatreddynpm@outlook.com"},"dist":{"shasum":"0fd3abf78f9661b7f969af34c2b5a7a7c42b67f6","tarball":"https://registry.npmjs.org/execution-time/-/execution-time-1.2.0.tgz","integrity":"sha512-8Xy8v8kWrKPLTIbNDq/yyOnE8iAbh21oHY2kYiaYNPgiYZxLpxB/Cr8W93+9bq6b/JsMc1eN88syUmQhjjQxmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBZnFp32LYGw6DhN0n1yxDkXl7eXT/EO8eiAJ9YzlWHeAiBizNZklFYSR9EoSphxFpzCS8rZSqabCnwuB2vZCqsx5A=="}]},"maintainers":[{"name":"svenkatreddynpm","email":"svenkatreddynpm@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/execution-time-1.2.0.tgz_1495842435791_0.7708472602535039"},"directories":{}},"1.3.0":{"name":"execution-time","version":"1.3.0","description":"ultility to measure execution time","main":"index.js","scripts":{"test":"NODE_ENV=test NODE_PATH=./ mocha test/**/*-test.js"},"repository":{"type":"git","url":"git+https://github.com/svenkatreddy/execution-time.git"},"keywords":["hrtime","execution","time","performance","perf","speed"],"author":{"name":"Venkat Reddy"},"license":"ISC","bugs":{"url":"https://github.com/svenkatreddy/execution-time/issues"},"homepage":"https://github.com/svenkatreddy/execution-time#readme","devDependencies":{"mocha":"^3.4.2","sinon":"^2.3.2","ultimate-chai":"^3.1.0"},"dependencies":{"pretty-hrtime":"^1.0.3"},"gitHead":"e7bc6d6df278f002ee865605bf973cbbf84d0e96","_id":"execution-time@1.3.0","_shasum":"39ea4eb7feac903024b166ab0a7065cc87080aee","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"svenkatreddynpm","email":"svenkatreddynpm@outlook.com"},"dist":{"shasum":"39ea4eb7feac903024b166ab0a7065cc87080aee","tarball":"https://registry.npmjs.org/execution-time/-/execution-time-1.3.0.tgz","integrity":"sha512-r0cFNI/v6XMK7sipeJ23DwL2EvRro8T8JaVAAn+LbvctYTQ/gBhbTw/6FnC8pBXMgcvJ4Q8o3hNlAzUgE2R0yg==","fileCount":21,"unpackedSize":84836,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwQMYCRA9TVsSAnZWagAAZUsP/3m/wciUlFHbY1O0kYnp\nLbk5Mp3iUYD9k82AK3tWu0vy3APpnR5VDKZ65Tmfmn3di/jyueO5lsheFMhT\nk5Uw7+6LwDdVgQB2n+RQJsoVrxHWwGlJICSHhkl4VXNpMt9oU15IEpa2v5O/\nwQbFNIX1XVyJTZtzfV56YyvAIjpfdB0ZAPiTOvbiKQlUDW2kiL7xdAO+vmZ4\nPWO+1aMWohE9RCMV2h5H3RoE8sKOmaLLska6LpJ9rAhAuzRzNSnrDgDjaAGy\ngbdz0twFfYj0QEnm1on3r99RYPLLGw3b/nMwBF7BrtzG5P69p42JUlOVWqsP\n5Px2VZF4VymA1mySPxj1L+/X++JRiVrehWGiqF30OWFc2xZkh5KExnVZMbVN\nvA+RLUsznXobrGAwGs7BNckKV/IEnocFtWJk77higUrgXWFndQ34ncSKYU1k\nKVzqbuud707qeJCAy6zp73/ngSMRQL2YtZx83bG+92ve7aTEREJcYAQBE4FW\nGGkPA4OVaujqGts0My/A07KREbNzSHNoZWXGZLtZY5HEJenjmYW/upO0G6sl\nYJRwn6TVdGecduACZbEpZ0BQIHxOMnjXYgFz0B4luT7G+tXnc1HH5usDx/6x\nKMddEwwHifx+0Zw6pL2ypRnfnrhDRUcow5eYEa0MqOEbso86/zBEvMun2vQi\nncRW\r\n=qbcb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTUy73OansOrVirz9mNzy48lzYnzzZZ/Q/NPxGtBmhJQIgWaQv8cjd0H1VJReLA90wMQTiQtli/+Ot21eN/8zoml0="}]},"maintainers":[{"name":"svenkatreddynpm","email":"svenkatreddynpm@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/execution-time_1.3.0_1539375895157_0.6306732683425234"},"_hasShrinkwrap":false},"1.4.1":{"name":"execution-time","version":"1.4.1","description":"ultility to measure execution time","main":"index.js","scripts":{"test":"NODE_ENV=test NODE_PATH=./ mocha test/**/*-test.js"},"repository":{"type":"git","url":"git+https://github.com/svenkatreddy/execution-time.git"},"keywords":["hrtime","execution","time","performance","perf","speed"],"author":{"name":"Venkat Reddy"},"license":"ISC","bugs":{"url":"https://github.com/svenkatreddy/execution-time/issues"},"homepage":"https://github.com/svenkatreddy/execution-time#readme","devDependencies":{"mocha":"^7.0.1","sinon":"^8.1.1","ultimate-chai":"^4.1.1"},"dependencies":{"pretty-hrtime":"^1.0.3"},"gitHead":"77a201b8e58fd79615a1c6c3522b37bc28da7363","_id":"execution-time@1.4.1","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-4t9svrTtsXxAEzAs9/tm1R/Voj5AYHqxd72BiLEbGQWJq2PD3tAmW8bXI7Pp0yorjaKshT1+NyKy0ytHlKW4Pg==","shasum":"d942f835ca9fd608691c4912d55458fc4a495271","tarball":"https://registry.npmjs.org/execution-time/-/execution-time-1.4.1.tgz","fileCount":10,"unpackedSize":17863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOgAnCRA9TVsSAnZWagAAU3wP/RxolSF5GMCtyLDyJzQZ\nLD4tNN7VpHxD7UUWMWg6dx/aSUJ+jBczJbjWWBR6kaGus/LAgYWTfSE7RjgE\nURceT53k0ap6NYk0HoOgDISG07c+/FFqgnNsRa/6ey/sXN3B6ZmitKVlqc7o\nCCp0O4QV+Qb23RHI1HZ41PEgD3NNa58dkY/dTCVsRNUglgWNTOTHdFBBAhlA\nniCI6TZt1I901Ju3f/AeFw/4RrOL0PV9dqgq/S3ZYFfeuFaFhpNpz7iv9hKq\nh1jiwbx6TroOAMSl+b8zPiS7jARRqqafaOi5fQnqa+oGb9P8SYuLeRDSUkoN\njLmcb83YIxgjOgbsvoTAysxO/aiLPwrNcf6Q3vbtIf2do9KoTcOecoBeBolv\n2dioVCOefuIi7YP140wDac+ZVHq7OErjB+43C0RPagQXcwqFgb5BJrA/MppY\nnNo2HBgR1TBPrJGFhgX3K46NuTVzNGOMZe1TWxIoJnN+rNqnTt4aEj1LwTxg\n6JmcKt2JAlj/PRd0zX896xlS0UpAf/y38n+rO3qyLyXJWpb4bLmxftYUwgS5\nL0OdixWPuxrLcQfzjWP4aOdzOgPNVyv+Q3ZaInclE+BktgCIRBZiuzR6EzcY\nmZq+BPX6xs9dFdyYtLCV/WN4KmHlvKR6DysNVlx186uy9flmKEbJnwARZj+N\noHdp\r\n=FCdE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCh/SauBlN22iRHxh7fZBdoFdwm1bqQOFYrAO+xB66whAIhAOXDkeNSkZuZymoAp/VKypE2JLRSJ/WPF8FdkN4MwArc"}]},"maintainers":[{"name":"svenkatreddynpm","email":"svenkatreddynpm@outlook.com"}],"_npmUser":{"name":"svenkatreddynpm","email":"svenkatreddynpm@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/execution-time_1.4.1_1580859431013_0.12551830877607495"},"_hasShrinkwrap":false}},"readme":"# execution-time\n\n[![Build Status](https://travis-ci.org/svenkatreddy/execution-time.svg?branch=master)](https://travis-ci.org/svenkatreddy/execution-time)\n\n[![NPM](https://nodei.co/npm/execution-time.png?stars=true)](https://nodei.co/npm/execution-time/)\n\nnode.js utility to measure execution time in code\n\n## Install\n```\nnpm install execution-time --save\n```\n\n## Usage\n```\nconst perf = require('execution-time')();\n\n//at beginning of your code\nperf.start();\n\n//at end of your code\nconst results = perf.stop();\nconsole.log(results.time);  // in milliseconds\n```\n\n### Named performance measurer\n```\nconst perf = require('execution-time')();\n\n//at beginning of your code, pass any name\nperf.start('apiCall');\n\n//at end of your code, pass the same name (anywhere in your flow)\nconst results = perf.stop('apiCall');\nconsole.log(results.time);  // in milliseconds\nconsole.log(results.preciseWords);  // in words\n\n\n```\n\n### if you dont care about results but just want to print results\n\nsample usage with debug\n```\nconst debug = require('debug')('your-module');\nconst perf = require('execution-time')(debug);\n\n//at beginning of your code\nperf.start();\n\n//at end of your code\nperf.stop();\n\n```\n\nalso works with console.log/info/warn\n\n```\nconst perf = require('execution-time')(console.log);\n\n//at beginning of your code\nperf.start();\n\n//at end of your code\nperf.stop();\n\n```\n","maintainers":[{"name":"svenkatreddynpm","email":"svenkatreddynpm@outlook.com"}],"time":{"modified":"2022-06-17T21:53:16.808Z","created":"2017-05-26T22:03:17.134Z","1.0.0":"2017-05-26T22:03:17.134Z","1.1.0":"2017-05-26T22:10:14.253Z","1.2.0":"2017-05-26T23:47:16.754Z","1.3.0":"2018-10-12T20:24:55.305Z","1.4.1":"2020-02-04T23:37:11.143Z"},"homepage":"https://github.com/svenkatreddy/execution-time#readme","keywords":["hrtime","execution","time","performance","perf","speed"],"repository":{"type":"git","url":"git+https://github.com/svenkatreddy/execution-time.git"},"author":{"name":"Venkat Reddy"},"bugs":{"url":"https://github.com/svenkatreddy/execution-time/issues"},"license":"ISC","readmeFilename":"README.md","users":{"svenkatreddynpm":true}}