A lightweight python timing class
Project description
TimeBoss
Lightweight python timing class. Inspired by TimeLord
(https://github.com/IceCubeOpenSource/skyllh)
Usage
from time_boss import TimeBoss
import numpy as np
with TimeBoss("root1"):
for i in range(100):
a = np.random.uniform(10000)
with TimeBoss("sum"):
np.sum(a)
with TimeBoss("mean"):
np.average(a)
with TimeBoss("root2"):
a = np.random.normal(100000)
TimeBoss.result(unit="ms")
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
TimeBoss-0.1.1.tar.gz
(2.8 kB
view hashes)
Built Distribution
TimeBoss-0.1.1-py3-none-any.whl
(15.5 kB
view hashes)