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.2.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for functimer-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46b8b84d3548168d7cc6cf8b7b8b635bd012f0de3d29ee6cec77e86029f3da63 |
|
MD5 | b106025cd2aff244d32c28abab7d9f7b |
|
BLAKE2b-256 | e852cc4eb677ca8c8450e5ccb9196689c6fde7370903332a298379d9a6f9f8b9 |