A lightweight python timing class
Project description
TimeBoss
Lightweight python timing class. Inspired by TimeLord (https://github.com/IceCubeOpenSource/skyllh)
Installation
pip install TimeBoss
Usage
from time_boss import TimeBoss
import numpy as np
with TimeBoss("uniform and summary stats"):
for i in range(100):
a = np.random.uniform(10000)
with TimeBoss("sum"):
np.sum(a)
with TimeBoss("mean"):
np.average(a)
for i in range(100):
with TimeBoss("normal"):
a = np.random.normal(100000)
TimeBoss.result(unit="ms")
TimeBoss.plot_results()
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.3.tar.gz
(3.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
TimeBoss-0.1.3-py3-none-any.whl
(16.3 kB
view details)
File details
Details for the file TimeBoss-0.1.3.tar.gz.
File metadata
- Download URL: TimeBoss-0.1.3.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f786a36a13138486c10c8b3196c1138151e19f20f36349ff44dad6598975d8f2
|
|
| MD5 |
fcfadc0a7fa8e0a6efa22dfc89a848d7
|
|
| BLAKE2b-256 |
0b89334d8c633028ad4748df2bae0c2e548a73adfb2d2a6e58edb4734662ba0b
|
File details
Details for the file TimeBoss-0.1.3-py3-none-any.whl.
File metadata
- Download URL: TimeBoss-0.1.3-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab12b28ddcc1bc7f6cf2615526c9a861aabc5507b935dd5615ede96860869dfe
|
|
| MD5 |
916b5f7ef8787d7567505a4d4ac8e949
|
|
| BLAKE2b-256 |
88c1b41d560d72e06be717c8ec391189a36c2ae67e6a093b9f3c49f3740505fe
|