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.
from clock_keeper.utility import Timer
Instantiating timer object.
timer = Timer()
Starting and ending keeping time.
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
Metadata
Release files for clock-keeper 0.7.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clock_keeper-0.7.7.tar.gz | 3.1 kB | Without provenance | Details for clock_keeper-0.7.7.tar.gz |
Release files / clock_keeper-0.7.7.tar.gz
| Download URL | clock_keeper-0.7.7.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5436cf76d2b31bf27752098bed914f4932e7cebe370026b3481bf2d1ebe2d052
|
|
BLAKE2b-256 checksum How to use checksums |
e7ef7c927cd990ab3bc18b7286d942a39054ee2cdf0df744d7518450bb06c9c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.0
|
Security for clock-keeper 0.7.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.