Metadata-Version: 2.1
Name: timeitX
Version: 1.0.1
Summary: timeitX - Function Execution Time Logger
Keywords: timeit,async timeit,async,timer,python
Author: Nitish Sai Kommaraju
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown

# timeitX - Function Execution Time Logger

![GitHub](https://img.shields.io/github/license/nitishsaik/timeitX)
![GitHub](https://img.shields.io/github/issues/nitishsaik/timeitX)
![GitHub](https://img.shields.io/github/stars/nitishsaik/timeitX)

`timeitX` is a Python decorator that logs the execution time of functions, both for synchronous and asynchronous functions.

## Features

- Log the execution time of functions.
- Supports both synchronous and asynchronous functions.
- Customizable function names for logging.
- Precision down to milliseconds.
- Easy to integrate with your Python projects.

## Installation

You can install `timeitX` via pip:

```bash
pip install timeitX
```

## Usage

```python

from timeitX import timeitX

# Define your logger
import logging
logger = logging.getLogger("timeitX")

@timeitX(name="My Function", logger=logger)
def my_function():
    # Your function code here

# For asynchronous functions
@timeitX(name="Async Function", logger=logger)
async def async_function():
    # Your async function code here

```

