Metadata-Version: 2.4
Name: timepix
Version: 0.1.1
Summary: A lightweight Python utility for measuring execution time between named checkpoints
Author-email: Alexey Kostarev <normjkeeewm@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/NormanwOw/timepix
Project-URL: Repository, https://github.com/NormanwOw/timepix
Project-URL: Issues, https://github.com/NormanwOw/timepix/issues
Keywords: timer,benchmark,profiling,performance,time
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# TimePix

A lightweight Python utility for measuring execution time between named checkpoints.

## Installation

```bash
$ pip install timepix
```
## Quick start
```python
from timepix import timepix as tp
import time

tp.set_point("start")
time.sleep(0.5)

tp.set_point("middle")
time.sleep(0.3)

tp.from_point("start") # stdout >> Time from point "start": 0.7988662s.
tp.from_last_point() # stdout >> Time from point "middle": 0.3008336s.
tp.between_points("start", "middle") # stdout >> Time between "start" and "middle" is 0.4981095s.
```
