Skip to main content

A simple Python package for clocking

Project description

ticktocker

CI Status CD Status License: MIT

ticktocker is a Python package that helps you measure the time taken by code execution. It provides a simple and intuitive way to track performance and optimize your code.

Todos

...

Features

Context Manager

ticktocker supports to measure the time taken by a block of code using a context manager.

from ticktocker import clock

with clock() as sw:
    ...
print(sw.elapsed)

Decorator

ticktocker also supports to measure the time taken by a function using a decorator.

from ticktocker import clock

@clock
def my_function():
    ...
my_function() # Elapsed time: ...

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

ticktocker-0.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ticktocker-0.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file ticktocker-0.3.tar.gz.

File metadata

  • Download URL: ticktocker-0.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for ticktocker-0.3.tar.gz
Algorithm Hash digest
SHA256 4bbb3f4e9f3f87651da2d621305c4d718a69453e97234de82e43e2c4c4320b5c
MD5 7482d98ef9847e8b50f931525836e87d
BLAKE2b-256 887d73ccb6b2478392ce94f2af1e61310147b53067a52de493d21befe7bacf47

See more details on using hashes here.

File details

Details for the file ticktocker-0.3-py3-none-any.whl.

File metadata

  • Download URL: ticktocker-0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for ticktocker-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6d200a4dfa1f3c9dcc531332c17e98e36676bfd1cdbc8a1b9b756cef2d71dd33
MD5 5e06106fa96c2aa3d6c49e6193c7754b
BLAKE2b-256 448539b69d9bc4098089450fa5bccc6aab5fe2b7dd3fd75075d063b217e74237

See more details on using hashes here.

Supported by

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