Metadata-Version: 2.4
Name: stopuhr
Version: 0.0.11
Summary: A simple tool for measuring durations in Python.
Project-URL: Documentation, https://relativityhd.github.io/stopuhr/latest/
Project-URL: Repository, https://github.com/relativityhd/stopuhr
Project-URL: Issues, https://github.com/relativityhd/stopuhr/issues
Author-email: Tobais Hölzer <tobiashoelzer@hotmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.11
Provides-Extra: export
Requires-Dist: pandas>=2.2.3; extra == 'export'
Description-Content-Type: text/markdown

# stopuhr

A simple tool for measuring durations in Python.

## Installation

You can install stopuhr via pip:

```sh
pip install stopuhr
```

However, `uv` is recommended for installing python packages:

```sh
uv add stopuhr
```

## Usage

With stopuhr it is convinient to measure durations in Python:

```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.
