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("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.2.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.2-py3-none-any.whl
(16.2 kB
view details)
File details
Details for the file TimeBoss-0.1.2.tar.gz.
File metadata
- Download URL: TimeBoss-0.1.2.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 |
b1e14e869a65cafe242e9c2538e7a9f7b52a8505ca20ec1ab08e4f080143b7ad
|
|
| MD5 |
7a8e91c201453536a32247672c8508a8
|
|
| BLAKE2b-256 |
3d3ebcbb23adc1068d2e948863ad5dde0b1a4be76d31a1bfdbac84943c4d2ad7
|
File details
Details for the file TimeBoss-0.1.2-py3-none-any.whl.
File metadata
- Download URL: TimeBoss-0.1.2-py3-none-any.whl
- Upload date:
- Size: 16.2 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 |
89cbc0fb183b62e679552dd0cde71545b45ba063c6752863a8d99f2aacde250d
|
|
| MD5 |
42459658bde0d1916e287b29a58456a2
|
|
| BLAKE2b-256 |
302ba5bc6053598426f402a3d54433239816f97c1a269c097cec7eb043d1d16e
|