You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

clock-keeper

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clock-keeper

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


Maintainers
1

Readme

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc