Skip to main content

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

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)

Source distribution for clock-keeper 0.7.7
File Size Uploaded
clock_keeper-0.7.7.tar.gz 3.1 kB Details

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

Release history Release notifications | RSS feed

This release

0.7.7 This release

1 release file

0.7.6

1 release file

0.7.5

1 release file

0.7.4

1 release file

0.7.3

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.3

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page