Pytimer is a Python library for measuring the execution time of functions.
- Python 3.7 or higher
- pip 22.0 or higher
- Git must be installed and accessible in your system PATH
Use the package manager pip to install pytimer.
pip install git+https://github.com/Carmel1215/Pytimer.gitfrom pytimer import timer
@timer
def quick():
pass
@timer(ns=True)
def slow():
for _ in range(10**6):
pass
quick()
slow()- Add comparison feature
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.