https://github.com/citguru/pytiming
A Python module for timing your python scripts execution time
https://github.com/citguru/pytiming
Last synced: 7 months ago
JSON representation
A Python module for timing your python scripts execution time
- Host: GitHub
- URL: https://github.com/citguru/pytiming
- Owner: CITGuru
- License: mit
- Created: 2018-11-18T17:57:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-18T19:01:43.000Z (about 7 years ago)
- Last Synced: 2025-03-12T12:14:44.904Z (10 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
*****
PyTiming
*****
A Python module for timing your python scripts execution time
*****
Installation
*****
PyPI (PIP)
######
::
$ pip install pytiming
GitHub (Git)
######
::
$ git clone https://github.com/CITGuru/PyTiming.git
$ cd PyTiming
$ python setup.py install
*****
Usage
*****
All you need to do is importing it in the script you want to time. Once the script stops, it prints out
the stop and elasped time.
Example ::
import pytiming
max_count = 100
for x in range(0, max_count):
print("Count: {}".format(x))
Output ::
========================================
('0:00:00.069', '-', 'End Program')
('Elapsed time:', '0:00:00.027')
========================================
*****
Contribution
*****
Send in your PRs
*****
Author
*****
Oyetoke Toby `http://medium.com/@oyetoketoby80 ``_