A decorator/wrapper package to time a given function.
Project description
functimer
A decorator/wrapper package to time a given function.
Installation
-
PYPI:
pip install functimer
-
Manual:
poetry build pip install dist/*.whl
How to install Poetry.
Quick Example
Comprehensive Examples in examples
@timed(unit=Unit.second, number=1)
def timed_sleep(seconds):
sleep(seconds)
runtime = timed_sleep(1)
"1.00 s"
Tests
Run tox
in the root directory of the repo.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
functimer-1.0.8.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for functimer-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd4eafd20e8a70bc9aabec03ffac7e6020fe1154e17059e02371c7b00bcd39e9 |
|
MD5 | a0f4a3340c55c164147ce51cb32cdd6f |
|
BLAKE2b-256 | 712ccce5218693dc125fbaeec71eb20be126705b5b9895b8203123d1bc9eccac |