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.9.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for functimer-1.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d599d5b21d8029be029dbe91075f3d2de1cfd282c2c5d1c678e04e13f2e71895 |
|
MD5 | 6d4f4abcb2a7034400b1170f26f25961 |
|
BLAKE2b-256 | 9a08601328830fa59727686b14e26afef09e2f1934be58d22cf9368a56119f71 |