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.1.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for functimer-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8a8089229c7a36e1beb58a2807ea74ac39e134e31c14c917b28680e9e379643 |
|
MD5 | 7e71635968454f1a16c9578d650bb3c6 |
|
BLAKE2b-256 | 0ea93e1fd332fe4baf6603a2d351fcdb707943ecd5c3c3fd6d100f40de6d69bb |