clock-keeper-0.7.7
توضیحات
A very minimalistic python module that lets you track the time your code snippets take to run.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | clock-keeper-0.7.7 |
| نام | clock-keeper |
| نسخه کتابخانه | 0.7.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Rajdeep Biswas |
| ایمیل نویسنده | r4jdeepbiswas@gmail.com |
| آدرس صفحه اصلی | https://github.com/rajdeep-biswas/clock-keeper |
| آدرس اینترنتی | https://pypi.org/project/clock-keeper/ |
| مجوز | MIT |
# Clock Keeper
A very minimalistic python module that lets you track the time your code snippets take to run.
This package is available on PyPI! Run the following command on your terminal to use it in your project.
```
pip install clock-keeper
```
## Usage example is as follows -
#### Importing Class from module.
```python
from clock_keeper.utility import Timer
```
#### Instantiating timer object.
```python
timer = Timer()
```
#### Starting and ending keeping time.
```python
timer.markStart()
for loop in lengthy_task:
# Computing the meaning of life.
timer.markEnd()
```
#### Output -
```
started processing: 2022-01-19 16:24:57.534867
done processing: 2022-01-19 16:25:05.282381
this operation took: 0:00:07.747514
```
### Contributions
Feel free to fork this project and add testing functionality and better terminal logging (especially if you want it in your production use cases).
Cheers,
Rajdeep. <3
نحوه نصب
نصب پکیج whl clock-keeper-0.7.7:
pip install clock-keeper-0.7.7.whl
نصب پکیج tar.gz clock-keeper-0.7.7:
pip install clock-keeper-0.7.7.tar.gz