Skip to main content

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.

Metadata

Release files for stopuhr 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stopuhr 0.0.11
File Size Uploaded
stopuhr-0.0.11.tar.gz 122.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stopuhr 0.0.11
File Interpreter ABI Platform
stopuhr-0.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 133.7 kB

Release files / stopuhr-0.0.11.tar.gz

Download URL stopuhr-0.0.11.tar.gz
Size 122.0 kB
Tags Source
SHA-256 checksum
How to use checksums
832f58b8003b66c432e53f2775c8b0b51aa8d4ba151b3764597d2db345cffe53
BLAKE2b-256 checksum
How to use checksums
f2069ed2ee4ccb50e689bacf3ae908bb5bfb7b9650efb85023667ada407e6608
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.6.7

Release files / stopuhr-0.0.11-py3-none-any.whl

Download URL stopuhr-0.0.11-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce988ede9577963e74ad19b34b1103373530af10f3ba28792bbd40398c225639
BLAKE2b-256 checksum
How to use checksums
e5ec22c2e3e076e724db9d3d53e244a06f89b58b98953e0d4fd1035b7895c2e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.6.7

Release history Release notifications | RSS feed

This release

0.0.11 This release

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page