Timespy is a lightweight Python decorator that measures the execution time of functions, providing an easy way to analyze and optimize performance.
Project description
|
|
|
|
|
|
|
|
|
|
TimeSpy ⏱
Timespy is a lightweight Python decorator that measures the execution time of functions, providing an easy way to analyze and optimize performance.
Installation
pip install timespy
Usage
from timespy import timer
@timer
def my_function():
import time
time.sleep(1)
my_function()
print(f"Execution time: {my_function.exec_time:.6f}s")
License
TimeSpy is licensed under the GNU General Public License v3 (GPLv3). See LICENSE for more details.
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
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 timespy-1.0.0.tar.gz.
File metadata
- Download URL: timespy-1.0.0.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8be853f0ff058445306df8c35865f831844c655fa03852118fa633dff45de9f0
|
|
| MD5 |
f4ce4413bcacb3679edfb5ec165952f1
|
|
| BLAKE2b-256 |
b4cbccbba771de83df795d6773b67d63a5cc527a05851fda7e25f72c3abfac74
|
File details
Details for the file timespy-1.0.0-py3-none-any.whl.
File metadata
- Download URL: timespy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce223b9af2f8aff2d0ed61ae9c7b1b155c8e2df0ac6a7aee095baf8ae6d58dad
|
|
| MD5 |
b46b9a5c0f2dcc967dc9d1ea5ba99377
|
|
| BLAKE2b-256 |
fb8cbee5daf59b4e7cdf955d072314262ea6d769e0b0e5afd68a3c401207bae9
|