{ "info": { "author": "Artur Barseghyan", "author_email": "artur.barseghyan@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3" ], "description": "===============\nsimple_timer\n===============\nA timer module. Makes it easy to track elapsed time.\n\nInstallation\n-----------------\nLatest stable version on PyPI:\n\n$ pip install simple_timer\n\nLatest stable version on bitbucket:\n\n$ pip install -e hg+http://bitbucket.org/barseghyanartur/timer@stable#egg=simple_timer\n\nUsage example\n-------------------------------------\nRequired imports.\n\n>>> from simple_timer import Timer\n\nInitialise timer.\n\n>>> timer = Timer()\n\nPrint elapsed duration.\n\n>>> print timer.duration\n0.16\n\nPrint elapsed timedelta.\n\n>>> print timer.timedelta\ndatetime.timedelta(0, 0, 7)\n\nStop the timer. Stopping the timer makes the ``duration`` and ``timedelta`` properties to freeze.\n\n>>> timer.stop()\n\nPrint frozen timedelta value.\n\n>>> print timer.timedelta\ndatetime.timedelta(0, 2, 943660)\n\nPrint frozen duration value.\n\n>>> print timer.duration\n2.94366\n\nOnce stoped, when calling the ``stop`` method again unfreezes the timer, calculates the new values and\nfreezes the timer again.\n\nShortcut for stopping and returning the duration value.\n\n>>> timer.stop_and_return_duration()\n143.230978\n\nShortcut for stopping and returning the timedelta value.\n\n>>> timer.stop_and_return_timedelta()\ndatetime.timedelta(0, 170, 351115)\n\nLicense\n-----------------\nGPL 2.0/LGPL 2.1\n\nAuthor\n-----------------\nArtur Barseghyan ", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/barseghyanartur/timer", "keywords": "timer", "license": "GPL 2.0/LGPL 2.1", "maintainer": null, "maintainer_email": null, "name": "simple_timer", "package_url": "https://pypi.org/project/simple_timer/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/simple_timer/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/barseghyanartur/timer" }, "release_url": "https://pypi.org/project/simple_timer/0.2/", "requires_dist": null, "requires_python": null, "summary": "A timer module. Makes it easy to track elapsed time.", "version": "0.2" }, "last_serial": 3472184, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "0313730b69042330d9ecaf0847074f0d", "sha256": "ac9b9a640a6d912f6310d26ab69617625faace01f280fc74d5af1c4b0f21f973" }, "downloads": -1, "filename": "simple_timer-0.1.tar.gz", "has_sig": false, "md5_digest": "0313730b69042330d9ecaf0847074f0d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2172, "upload_time": "2013-05-17T21:10:11", "url": "https://files.pythonhosted.org/packages/33/aa/04a8ace9827a5d2753aa0ed2ce45c8387ac7d35d9300967f85253bbbcc9a/simple_timer-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "ea984ad7aba0ee16a14dea8f00e028e9", "sha256": "785e2d6bea269bded6f67b07827a8ea5324688f42a638c67153e113c1e899c7e" }, "downloads": -1, "filename": "simple_timer-0.2.tar.gz", "has_sig": false, "md5_digest": "ea984ad7aba0ee16a14dea8f00e028e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3043, "upload_time": "2013-10-03T21:56:05", "url": "https://files.pythonhosted.org/packages/90/05/06b9e3247646aa1ff4e5f012c402b0a722a3bbd332d7702a8a64ad7f0535/simple_timer-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ea984ad7aba0ee16a14dea8f00e028e9", "sha256": "785e2d6bea269bded6f67b07827a8ea5324688f42a638c67153e113c1e899c7e" }, "downloads": -1, "filename": "simple_timer-0.2.tar.gz", "has_sig": false, "md5_digest": "ea984ad7aba0ee16a14dea8f00e028e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3043, "upload_time": "2013-10-03T21:56:05", "url": "https://files.pythonhosted.org/packages/90/05/06b9e3247646aa1ff4e5f012c402b0a722a3bbd332d7702a8a64ad7f0535/simple_timer-0.2.tar.gz" } ] }