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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
zimer-0.1.0-py3-none-any.whl
(2.0 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b029a2faf253ac20085b423dcf34c81942c28617b986a9c77959282cf2a847f
|
|
| MD5 |
325bb392ea2f2e48b558e7a0503fbf96
|
|
| BLAKE2b-256 |
59d5fdb659dbafda842df5a292117c324beab5816675142fc929d9513be4050c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8148fad3de31b33700aed22c548c785f58d4ae736bbda0c59cf16d0e4fab784
|
|
| MD5 |
ec5fa544135e9446fd216b0b462fdc2d
|
|
| BLAKE2b-256 |
66bb82f009057d7133fbbda81ca635affd6893e89bb49c48b97d1f1e8a85608d
|