Skip to main content

A very minimalistic python module that lets you track the time your code snippets take to run.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clock_keeper-0.7.7.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file clock_keeper-0.7.7.tar.gz.

File metadata

  • Download URL: clock_keeper-0.7.7.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for clock_keeper-0.7.7.tar.gz
Algorithm Hash digest
SHA256 5436cf76d2b31bf27752098bed914f4932e7cebe370026b3481bf2d1ebe2d052
MD5 c769b0fb6b4d69db185523dd08dac8ce
BLAKE2b-256 e7ef7c927cd990ab3bc18b7286d942a39054ee2cdf0df744d7518450bb06c9c8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page