A function decorator/wrapper package to time a given function.
Project description
functimer
A function 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(0.3)
Tests
Run pytest
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.4.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for functimer-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de4878fba25f8ddd009a7ed422302681da8c6287c5e718c85c6c504a88e3781f |
|
MD5 | 24f32bbad1938524ae9fd8e2d2a05200 |
|
BLAKE2b-256 | a0d0b7cd0dee6a4430670dd7712e76b15d14c370b0f281fc6557495386a3027f |