{ "info": { "author": "Chaordix (Russ Porosky)", "author_email": "russ@chaordix.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3" ], "description": "# cTimer - High Precision Timer Extension\n\n`cTimer` provides a nanosecond-precision timer to Python.\n\n##Usage\n\n\timport cTimer as timer\n\t\n\tstart = timer.start()\n\t\n\t# Do a bunch of things here that take some time.\n\t\n\tcheckpoint = timer.checkpoint()\n\t\n\t# Do some more time-vampire things here.\n\t\n\tstop = timer.stop()\n\t\n\tprint timer.diff(start, stop) # Total execution time\n\tprint timer.diff(start, checkpoint) # Execution time of first half\n\tprint timer.diff(checkpoint, stop) # Execution time of second half\n\t\n\tprint timer.get() # Time since cTimer was imported\n\n## Methods\n\n**`start()`** - returns an `int` referencing the current time stamp.\n\n**`checkpoint()`** - returns an `int` referencing the current time stamp.\n\n**`stop()`** - returns an `int` referencing the current time stamp.\n\n**`diff(int A, int B)`** - returns the difference between two timestamp references provided by `start()`, `checkpoint()` or `stop()`. Order does not matter, result is always a positive `float` representing seconds.\n\n**`get()`** - returns the number of seconds as a `float` since the `cTimer` library was `import`ed.\n\n## Installation\n\nClone the repository into a new folder. Run the following commands (you *may* need to `sudo` the second one):\n\n\tpython setup.py build\n\tpython setup.py install\n\n## Notes\n\nThis is a lightweight extension and has not been thouroughly tested on all combinations of platforms and Python versions.\n\nIt has been tested on CentOS 5, Ubuntu 10.4, and OSX 10.5 to 10.8 using Python 2.7 and Python 3.2. All platforms were 64-bit.\n\nThis *should* work with 32-bit hosts, but that has not been tested yet.\n\nThis *does not* work on Windows hosts yet.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/downloads/Chaordix/cTimer/cTimer-0.1.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/chaordix/cTimer/", "keywords": "timer,precision", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "cTimer", "package_url": "https://pypi.org/project/cTimer/", "platform": "ALL", "project_url": "https://pypi.org/project/cTimer/", "project_urls": { "Download": "https://github.com/downloads/Chaordix/cTimer/cTimer-0.1.1.tar.gz", "Homepage": "https://github.com/chaordix/cTimer/" }, "release_url": "https://pypi.org/project/cTimer/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "A high precision timer.", "version": "0.1.1" }, "last_serial": 802802, "releases": { "0.1.1": [] }, "urls": [] }