Skip to main content

A simple decorator to time function execution

Project description

Timerizer

timerizer is a simple Python library that provides a decorator to measure the execution time of functions.

Installation

pip install timerizer

Usage

from timer import timer

@timer
def my_function():
    # Your code here
    time.sleep(1)

my_function()
# Output: Function 'my_function' executed in 1.0001 seconds

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

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

timerizer-0.1.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

timerizer-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file timerizer-0.1.1.tar.gz.

File metadata

  • Download URL: timerizer-0.1.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for timerizer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f7eaf460054fbc0b3dd8124aa6811f12bb696eba3bf25e788b319beb253fec03
MD5 d92244b099070d85f77a4a64a9fc7967
BLAKE2b-256 99f73be73ae62393d5b2d5d6dbe34c6183f4ee3d77a22891bb6e98d76b23bb57

See more details on using hashes here.

File details

Details for the file timerizer-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: timerizer-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for timerizer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 91c6c4e98976fabdca49b50e6d7f1346f2f9dcbcf4f756fdc9196008ddd3b510
MD5 7815b12f9d606458393d4507f9c69a5a
BLAKE2b-256 701dbbfaa738e0d1606a3a2591c4971ca3e35f56ea6be2c3137c9c59227e37b1

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