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.4.tar.gz
(7.0 kB
view hashes)
Built Distribution
Close
Hashes for colortimelog-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac11c5203ba623c2664bb6bac0d5a8062c3ad96338f818cf1b206a59503626c0 |
|
MD5 | 9d8799adcfbec105b31ff223dcb4615a |
|
BLAKE2b-256 | f4f71d434234ce56c6439d7209944cb8b0ff6a783b883aeeb05b998a7689b3ab |