A simple tool for measuring durations in Python.
Project description
stopuhr
A simple tool for measuring durations in Python.
Installation
You can install stopuhr via pip:
pip install stopuhr
However, uv is recommended for installing python packages:
uv add stopuhr
Usage
With stopuhr it is convinient to measure durations in Python:
import time
from stopuhr import stopwatch
with stopwatch("My Timer"):
# Do something
time.sleep(2)
>>> My Timer took 2.00s
@stopwatch("My Timer")
def my_function():
# Do something
time.sleep(2)
>>> My Timer took 2.00s
This library can much more than that. Visit the reference or example section for more details.
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
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 stopuhr-0.0.11.tar.gz.
File metadata
- Download URL: stopuhr-0.0.11.tar.gz
- Upload date:
- Size: 122.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
832f58b8003b66c432e53f2775c8b0b51aa8d4ba151b3764597d2db345cffe53
|
|
| MD5 |
6a26e67aa24e789444eacee5b07e226a
|
|
| BLAKE2b-256 |
f2069ed2ee4ccb50e689bacf3ae908bb5bfb7b9650efb85023667ada407e6608
|
File details
Details for the file stopuhr-0.0.11-py3-none-any.whl.
File metadata
- Download URL: stopuhr-0.0.11-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce988ede9577963e74ad19b34b1103373530af10f3ba28792bbd40398c225639
|
|
| MD5 |
d4bfa5da36aa14b2f232afa8e03fbe86
|
|
| BLAKE2b-256 |
e5ec22c2e3e076e724db9d3d53e244a06f89b58b98953e0d4fd1035b7895c2e9
|