{ "info": { "author": "Brian Curtin", "author_email": "brian@python.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Python Software Foundation License", "Operating System :: Microsoft", "Operating System :: Microsoft :: Windows", "Operating System :: Microsoft :: Windows :: Windows NT/2000", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2" ], "description": "`timer` is a C extension that provides a `Timer` class that operates similar\nto the `threading` module's `Timer` factory. Provided a duration in\nmicroseconds and a callable, the timer can be constructed and started.:\n\n >>> callback = lambda: print(\"Time up!\")\n >>> t = timer.Timer(1000000, callback) # One second timer\n >>> t.start()\n Time up!\n\n`Timer` objects can also be constructed with optional arguments and keyword\narguments to be passed to the callback.:\n\n >>> def callback(*args, **kwargs):\n ... print(args, kwargs)\n ...\n >>> t = timer.Timer(1000000, callback, 1, 2, 3, hurf=\"durf\")\n >>> t.start()\n (1, 2, 3) {'hurf': 'durf'}\n\n`Timer` objects provide microsecond resolution when stopped. The value is\nreturned from the `stop` method, and also available in the `elapsed`\nattribute.:\n\n >>> t = timer.Timer(10000000, callback) # Ten second timer\n >>> t.start()\n >>> # Call stop after about three seconds\n >>> t.stop()\n 3534569\n >>> # Close enough, that's 3.534569 seconds\n >>> t.elapsed\n 3534569\n\nFor an idea of how this works, check out the source code and/or read\nhttp://msdn.microsoft.com/en-us/magazine/cc163996.aspx. A number of Win32\nAPIs are used to supplement\n`QueryPerformanceCounter `_\nto keep the timing high resolution and accurate.\n\nThis is fairly stable but doesn't have a lot of tests and hasn't been used\nall that much. I've tested it on Python 3.1 and backported it to work with\nPython 2.7. It probably works from other versions but I haven't tried.\n\nDevelopment occurs at https://bitbucket.org/briancurtin/timer.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "PSF", "maintainer": null, "maintainer_email": null, "name": "timer", "package_url": "https://pypi.org/project/timer/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/timer/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/timer/0.1/", "requires_dist": null, "requires_python": null, "summary": "High frequency start/stop timer", "version": "0.1" }, "last_serial": 800693, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e716ad33efc64445e01af7b06982a455", "sha256": "642ec92857d00084fd8376bd31644934f30cfc8f281171d0d33e5f4135bbb1ea" }, "downloads": -1, "filename": "timer-0.1.win32-py2.6.exe", "has_sig": false, "md5_digest": "e716ad33efc64445e01af7b06982a455", "packagetype": "bdist_wininst", "python_version": "2.6", "requires_python": null, "size": 206955, "upload_time": "2011-02-17T19:25:26", "url": "https://files.pythonhosted.org/packages/38/d1/3a24991d427ce297b2abbddbe5b4d121089cc01ef9254a8c62b702b01cdf/timer-0.1.win32-py2.6.exe" }, { "comment_text": "", "digests": { "md5": "e8aa3bdfcb976fb585a2f076dc68f968", "sha256": "0de6287582b17795ff9d38fe638d184cb47710eb04e10ce0a821db603e81ab47" }, "downloads": -1, "filename": "timer-0.1.win32-py2.7.exe", "has_sig": false, "md5_digest": "e8aa3bdfcb976fb585a2f076dc68f968", "packagetype": "bdist_wininst", "python_version": "2.7", "requires_python": null, "size": 206959, "upload_time": "2011-02-17T19:23:12", "url": "https://files.pythonhosted.org/packages/63/1e/bb2d55b2efdfbed672daeb612cd29fcee6a8d7f58aa2eef6d932fffefbe9/timer-0.1.win32-py2.7.exe" }, { "comment_text": "", "digests": { "md5": "7b443f793d463c0078d4a9cfb0e2b034", "sha256": "b92fe7f939c852a4836bda789fe012fd39356ec39af5c93f8eb7a0dd3321d1b6" }, "downloads": -1, "filename": "timer-0.1.win32-py3.1.exe", "has_sig": false, "md5_digest": "7b443f793d463c0078d4a9cfb0e2b034", "packagetype": "bdist_wininst", "python_version": "3.1", "requires_python": null, "size": 206965, "upload_time": "2011-02-17T19:23:38", "url": "https://files.pythonhosted.org/packages/d1/11/c0c514d924bb5ca379706c93b4a1d2e403fd88b5efbf076a87bd65aa977a/timer-0.1.win32-py3.1.exe" }, { "comment_text": "", "digests": { "md5": "cc945362c57b0e2f239348d9a185f339", "sha256": "529d9cd36cca4b199c65d499dd8b7a394bf4f17a0e072648491167a1ec81806e" }, "downloads": -1, "filename": "timer-0.1.win32-py3.2.exe", "has_sig": false, "md5_digest": "cc945362c57b0e2f239348d9a185f339", "packagetype": "bdist_wininst", "python_version": "3.2", "requires_python": null, "size": 206967, "upload_time": "2011-02-17T19:33:37", "url": "https://files.pythonhosted.org/packages/68/eb/fed4aa91a9a27896f7557ff6078c164f8767f3b6b339367b2532b17cfbff/timer-0.1.win32-py3.2.exe" }, { "comment_text": "", "digests": { "md5": "976bf4efc84395ca98e9f21237f0895f", "sha256": "3af762dc105c9f4cce7a17bee6e6bb6ac419aeee234ecec210fc31e67e2a1dc2" }, "downloads": -1, "filename": "timer-0.1.zip", "has_sig": false, "md5_digest": "976bf4efc84395ca98e9f21237f0895f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9903, "upload_time": "2011-02-16T22:12:14", "url": "https://files.pythonhosted.org/packages/ae/6b/cfaaf4cb44482d591ab146ee9026ad48dcf0846e7024d4ef9044cf373927/timer-0.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e716ad33efc64445e01af7b06982a455", "sha256": "642ec92857d00084fd8376bd31644934f30cfc8f281171d0d33e5f4135bbb1ea" }, "downloads": -1, "filename": "timer-0.1.win32-py2.6.exe", "has_sig": false, "md5_digest": "e716ad33efc64445e01af7b06982a455", "packagetype": "bdist_wininst", "python_version": "2.6", "requires_python": null, "size": 206955, "upload_time": "2011-02-17T19:25:26", "url": "https://files.pythonhosted.org/packages/38/d1/3a24991d427ce297b2abbddbe5b4d121089cc01ef9254a8c62b702b01cdf/timer-0.1.win32-py2.6.exe" }, { "comment_text": "", "digests": { "md5": "e8aa3bdfcb976fb585a2f076dc68f968", "sha256": "0de6287582b17795ff9d38fe638d184cb47710eb04e10ce0a821db603e81ab47" }, "downloads": -1, "filename": "timer-0.1.win32-py2.7.exe", "has_sig": false, "md5_digest": "e8aa3bdfcb976fb585a2f076dc68f968", "packagetype": "bdist_wininst", "python_version": "2.7", "requires_python": null, "size": 206959, "upload_time": "2011-02-17T19:23:12", "url": "https://files.pythonhosted.org/packages/63/1e/bb2d55b2efdfbed672daeb612cd29fcee6a8d7f58aa2eef6d932fffefbe9/timer-0.1.win32-py2.7.exe" }, { "comment_text": "", "digests": { "md5": "7b443f793d463c0078d4a9cfb0e2b034", "sha256": "b92fe7f939c852a4836bda789fe012fd39356ec39af5c93f8eb7a0dd3321d1b6" }, "downloads": -1, "filename": "timer-0.1.win32-py3.1.exe", "has_sig": false, "md5_digest": "7b443f793d463c0078d4a9cfb0e2b034", "packagetype": "bdist_wininst", "python_version": "3.1", "requires_python": null, "size": 206965, "upload_time": "2011-02-17T19:23:38", "url": "https://files.pythonhosted.org/packages/d1/11/c0c514d924bb5ca379706c93b4a1d2e403fd88b5efbf076a87bd65aa977a/timer-0.1.win32-py3.1.exe" }, { "comment_text": "", "digests": { "md5": "cc945362c57b0e2f239348d9a185f339", "sha256": "529d9cd36cca4b199c65d499dd8b7a394bf4f17a0e072648491167a1ec81806e" }, "downloads": -1, "filename": "timer-0.1.win32-py3.2.exe", "has_sig": false, "md5_digest": "cc945362c57b0e2f239348d9a185f339", "packagetype": "bdist_wininst", "python_version": "3.2", "requires_python": null, "size": 206967, "upload_time": "2011-02-17T19:33:37", "url": "https://files.pythonhosted.org/packages/68/eb/fed4aa91a9a27896f7557ff6078c164f8767f3b6b339367b2532b17cfbff/timer-0.1.win32-py3.2.exe" }, { "comment_text": "", "digests": { "md5": "976bf4efc84395ca98e9f21237f0895f", "sha256": "3af762dc105c9f4cce7a17bee6e6bb6ac419aeee234ecec210fc31e67e2a1dc2" }, "downloads": -1, "filename": "timer-0.1.zip", "has_sig": false, "md5_digest": "976bf4efc84395ca98e9f21237f0895f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9903, "upload_time": "2011-02-16T22:12:14", "url": "https://files.pythonhosted.org/packages/ae/6b/cfaaf4cb44482d591ab146ee9026ad48dcf0846e7024d4ef9044cf373927/timer-0.1.zip" } ] }