pip install cantilever
# Example
import time
from cantilever.core.timer import show_timings, timeit
with timeit("here"):
for _ in range(10):
with timeit("this"):
time.sleep(0.1)
show_timings(force=True)
Timings:
# | avg | total | sd | count
# root ................................... | 1.00 | 1.00 | 0.00 | 1.00
# here | 1.00 | 1.00 | 0.00 | 1.00
# this _________________________________ | 0.10 | 1.00 | 0.00 | 10.00
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cantilever-0.1.1.tar.gz
(15.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
File details
Details for the file cantilever-0.1.1.tar.gz.
File metadata
- Download URL: cantilever-0.1.1.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91e356d7460a439ffbb8ed0f82a053c1b5928f621f9b6e826e41ac216e6ca443
|
|
| MD5 |
aee62571ab6f936de8344b90b7852887
|
|
| BLAKE2b-256 |
54b86c13dd8a75bbf757a20172dd1bfba48d549da2f67ceec00c94949f8b1911
|
File details
Details for the file cantilever-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cantilever-0.1.1-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24077eb8cb3a177a6c2d7acc487c4cdb96e16d2b9b8c7766e17d4ef45dc671f2
|
|
| MD5 |
c3d562ffccffc1cd0b70e4bf6780ea9a
|
|
| BLAKE2b-256 |
d4c62022e311aba61e16f4e57513eb399aa8492f3692ceeed8cf5b333cab6127
|