A util for logging the time elapsed for a task.
Project description
colortimelog: A util for logging the time elapsed for a task.
Install
pip install colortimelog
Usage
Add timing for a function:
import colortimelog
@colortimelog.timefunc
def my_function():
...
Add timeing for a block of code:
import colortimelog
with colortimelog.timeblock("Doing XYC"):
do_x()
do_y()
do_z()
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
colortimelog-0.0.3.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for colortimelog-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 812f032613436b67a05da5f1c591669b67988c243706cef29b0747af00917687 |
|
MD5 | bdb54291e421f6a7d512bc421918ac28 |
|
BLAKE2b-256 | 02b0adc8872511b7a13e6c18afc1f6f36be1321f7df7d3f13a4e5eb036d0e654 |