{ "info": { "author": "HH-MWB", "author_email": "h.hong@mail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# TimeRun\n\nTimeRun is a [Python](https://www.python.org) library for elapsed time measurement.\n\n* Measure elapsed time and format output in **one line** yet providing the highest resolution for time measurement\n* All in a single file with no dependencies other than [Python Standard Library](https://docs.python.org/3/library/)\n\n## Features\n\n* Elapsed Time Estimator\n * Measure elapsed time with sleep\n * Measure elapsed time without sleep\n* Elapsed Time Formatter\n * Format time into hours, minutes, seconds and nanoseconds\n * Hide days part if time is less than 1 day \n* Shortcut to Time Measurement\n * Measure elapsed time for a code block\n * Measure elapsed time for a function\n\n## Installation\n\nInstall TimeRun from [Python Package Index](https://pypi.org/project/timerun/)\n\n```\npip install timerun\n```\n\nInstall TimeRun from [Source Code](https://github.com/HH-MWB/timerun)\n\n```\npython setup.py install\n```\n\n## Examples\n\n### Measure code block execution time\n\n```python\nfrom timerun import time_code\n\nwith time_code('countdown'):\n n = 1e6\n while n > 0:\n n -= 1\n```\n\n```\ncountdown - 00:00:00.110983022\n```\n\n### Measure function execution time\n\n```python\nfrom timerun import time_func\n\n@time_func\ndef countdown():\n n = 1e6\n while n > 0:\n n -= 1\n\ncountdown()\n```\n\n```\n__main__.countdown - 00:00:00.069651527\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/HH-MWB/timerun/blob/master/LICENSE) file for details\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/HH-MWB/timerun", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "timerun", "package_url": "https://pypi.org/project/timerun/", "platform": "", "project_url": "https://pypi.org/project/timerun/", "project_urls": { "Homepage": "https://github.com/HH-MWB/timerun" }, "release_url": "https://pypi.org/project/timerun/0.1/", "requires_dist": null, "requires_python": ">=3.4", "summary": "Library for execution time measurement", "version": "0.1" }, "last_serial": 5578218, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "9c456c57d2dc768674d4c5d50e985a71", "sha256": "89ea33114af9e214f62962ba1d691e0d9a1cc2aeae910e55fe0033faf94f9940" }, "downloads": -1, "filename": "timerun-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9c456c57d2dc768674d4c5d50e985a71", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 3801, "upload_time": "2019-07-24T15:35:46", "url": "https://files.pythonhosted.org/packages/c6/7d/e5dfb003e6b970d31e0c42e71d105682e8b80de307ed6dc34a6a41157b5e/timerun-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "02421225768a56e91aec31fae20af4d9", "sha256": "49fbbbe48cb452d351484683138f3f38e8d9871d033e72cae18f9d927f01e2f4" }, "downloads": -1, "filename": "timerun-0.1.tar.gz", "has_sig": false, "md5_digest": "02421225768a56e91aec31fae20af4d9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 3577, "upload_time": "2019-07-24T15:35:48", "url": "https://files.pythonhosted.org/packages/05/c6/0e55f1a23605c6c8d539f9a4232008a7322edb97aa871fc79c0433bc4c4f/timerun-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9c456c57d2dc768674d4c5d50e985a71", "sha256": "89ea33114af9e214f62962ba1d691e0d9a1cc2aeae910e55fe0033faf94f9940" }, "downloads": -1, "filename": "timerun-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9c456c57d2dc768674d4c5d50e985a71", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 3801, "upload_time": "2019-07-24T15:35:46", "url": "https://files.pythonhosted.org/packages/c6/7d/e5dfb003e6b970d31e0c42e71d105682e8b80de307ed6dc34a6a41157b5e/timerun-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "02421225768a56e91aec31fae20af4d9", "sha256": "49fbbbe48cb452d351484683138f3f38e8d9871d033e72cae18f9d927f01e2f4" }, "downloads": -1, "filename": "timerun-0.1.tar.gz", "has_sig": false, "md5_digest": "02421225768a56e91aec31fae20af4d9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 3577, "upload_time": "2019-07-24T15:35:48", "url": "https://files.pythonhosted.org/packages/05/c6/0e55f1a23605c6c8d539f9a4232008a7322edb97aa871fc79c0433bc4c4f/timerun-0.1.tar.gz" } ] }