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.2.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.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ticktocker-0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 c196479a3eaafed1373321235868873bae2bec1afc47f5e9cab6690ef71075b5
MD5 74e0b8de2e3094e53b18e056aa147404
BLAKE2b-256 2d73434f9274eccc22903ba0e090ebd26a3c0e77ee84ebbd5b63657fdc570c4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ticktocker-0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 623bbec7a44707ae2ccb99312956ce3e61752d4f588a81e4757454efeb255d0e
MD5 590754dd55249b7b6e0a023d2aee3f01
BLAKE2b-256 d7ce49ba7921462e283a39b26da8d58800c5de6f39ba64d105d10eaa9b901098

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