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
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
timerizer-0.1.0.tar.gz
(2.5 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
File details
Details for the file timerizer-0.1.0.tar.gz.
File metadata
- Download URL: timerizer-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dcf8806a9daa0629bed38bccedd3e3ff8304e494ce02ed95703da64e8a2d208
|
|
| MD5 |
b453aed0de0613ce29383b52f88ff040
|
|
| BLAKE2b-256 |
ecda749dd8b11cfbd77fabccd47c9a84777e08bca6f28325fe3e6f06ac9366b1
|
File details
Details for the file timerizer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: timerizer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abc22fed89484b7b2ebba8158af3052446a558cdab7718163b7becea9469c65b
|
|
| MD5 |
572020220904cbb0268df9fe7809c5bf
|
|
| BLAKE2b-256 |
41a66496e27653e5b533b18417899611115978c8079002118a76184dc28548f8
|