Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stopuhr-0.0.10.tar.gz (114.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stopuhr-0.0.10-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file stopuhr-0.0.10.tar.gz.

File metadata

  • Download URL: stopuhr-0.0.10.tar.gz
  • Upload date:
  • Size: 114.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.7

File hashes

Hashes for stopuhr-0.0.10.tar.gz
Algorithm Hash digest
SHA256 281d70d0f7c6f1fe3f3c7763d7fac0ba770b49b714dcb384fe435d404dd51fb7
MD5 12fb157f39fbb33e010654b1577d8a84
BLAKE2b-256 156ede2ac9f2c4a8e5acaaa6f691f8f2401a8ad2397779db3defcd90501b7d4e

See more details on using hashes here.

File details

Details for the file stopuhr-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: stopuhr-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.7

File hashes

Hashes for stopuhr-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 e5aff4e00963abf473cf02d2980ded771034423a96c4e71c92c09d456ec83708
MD5 9d195071497c1b1c34fe04055afa49aa
BLAKE2b-256 7a317d601cc639b0362a213552a838af601105591598a4b08ec80666458083d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page