Metadata-Version: 2.1
Name: time-checker
Version: 0.0.1
Summary: A reusable timer utility for Python scripts
Author: Deep Korat
Author-email: deepkorat13@gmail.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

# Code-Time: A Reusable Timer Utility for Python Scripts

Code-Time-Checker is a lightweight and reusable Python package for measuring the execution time of scripts, functions, and code blocks. Itâ€™s perfect for developers who want to profile their Python code quickly.

## Features
- **Function Timing**: Use a decorator to measure the execution time of any function.
- **Code Block Timing**: Use a context manager to time specific blocks of code.
- **Script Timing**: Easily measure the total execution time of your Python script.

## Installation
Install Code-Time-Checker using pip:
```bash
pip install code-time-checker
```

## Usage

### 1. Timing Code Blocks
Use the `time_block` context manager to measure the time taken by a specific block of code:

```python
from code_timechecker import time_block

with time_block("Processing Loop"):
    for _ in range(10**6):
        pass
```
**Output:**
```
Processing Loop executed in 0.1234 seconds
```

### 2. Timing Functions
Use the `time_function` decorator to measure the time taken by any function:

```python
from code_time import time_function

@time_function
def example_function():
    for _ in range(10**7):
        pass

example_function()
```
**Output:**
```
Function 'example_function' executed in 0.4567 seconds
```

### 3. Timing an Entire Script
Use the `script_timer` utility to measure the total execution time of a script:

```python
from code_time import script_timer

with script_timer():
    print("Starting script...")
    for _ in range(10**6):
        pass
    print("Script complete.")
```
**Output:**
```
Starting script...
Script complete.
Script executed in 0.7890 seconds
```

## Contributing
Contributions are welcome! Feel free to open issues or submit pull requests.

## License
This project is licensed under the MIT License. See the `LICENSE` file for details.

---

## Author
- **Deep Korat**  
  [GitHub Profile](https://github.com/deepkorat) | [Email](mailto:deepkorat13@gmail.com)
