Metadata-Version: 2.4
Name: pytasktimer
Version: 0.1.0
Summary: A simple Python package for timing functions and code blocks
Home-page: https://github.com/yourusername/pytasktimer
Author: Your Name
Author-email: your.email@example.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary

# pytasktimer

A simple Python package for timing functions and code blocks.

## Installation

```bash
pip install pytasktimer
```

## Usage

### Using the Timer context manager

```python
from pytasktimer import Timer

with Timer("my task"):
    time.sleep(1)
```

### Using the decorator

```python
from pytasktimer import time_function

@time_function
def my_function():
    time.sleep(0.5)

my_function()
```

### Using the decorator that returns elapsed time

```python
from pytasktimer import time_function_with_return

@time_function_with_return
def compute():
    time.sleep(0.3)
    return 42

result, elapsed = compute()
print(f"Result: {result}, elapsed: {elapsed}")
```

## License

MIT
