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.3.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for functimer-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5aec1a98f0471c7edd9ae53ea5e77f03c900e2bdf09e372012799a681fed251 |
|
MD5 | 55d7b1947bcb45faf7ef1dd9e145811b |
|
BLAKE2b-256 | 656ed1f9095f83228946a668aa53e7eb45e13b2f1f71c0711813159cd5a56507 |