Skip to main content

A simple decorator for timing functions.

Project description

ztime

A simple decorator for timing functions.

Installation

pip install ztime

Usage

from ztime import ztime
import time

@ztime
def my_function():
    time.sleep(1)

@ztime(repeats=3)
def another_function():
    time.sleep(0.5)

my_function()
another_function()

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

zimer-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

zimer-0.1.0-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file zimer-0.1.0.tar.gz.

File metadata

  • Download URL: zimer-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for zimer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7b029a2faf253ac20085b423dcf34c81942c28617b986a9c77959282cf2a847f
MD5 325bb392ea2f2e48b558e7a0503fbf96
BLAKE2b-256 59d5fdb659dbafda842df5a292117c324beab5816675142fc929d9513be4050c

See more details on using hashes here.

File details

Details for the file zimer-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zimer-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for zimer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8148fad3de31b33700aed22c548c785f58d4ae736bbda0c59cf16d0e4fab784
MD5 ec5fa544135e9446fd216b0b462fdc2d
BLAKE2b-256 66bb82f009057d7133fbbda81ca635affd6893e89bb49c48b97d1f1e8a85608d

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