Measure exec time of a Python function
Project description
elapsed_time
from elapsed_time import elapsed
@elapsed
def test():
for _ in range(0,10000000):
pass
test()
>>> Elapsed time: 0.16048717498779297
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
elapsed_time-1.1.tar.gz
(2.2 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 elapsed_time-1.1.tar.gz.
File metadata
- Download URL: elapsed_time-1.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f7d06a1b0103849f5aee1ca8129efd3dd8607f0669d67ef7e1ff193bf118511
|
|
| MD5 |
6e05c1063544214f65e2fe2b1b0aaa4a
|
|
| BLAKE2b-256 |
c27c4e9dd8c4760b0a560fbe0159f2f548ebba34680d070c7eb5a85d17c4785c
|
File details
Details for the file elapsed_time-1.1-py3-none-any.whl.
File metadata
- Download URL: elapsed_time-1.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc8273e83ac101c751b797b4b5bc63aa0c4413f385bf5b440967e62de54e8d0d
|
|
| MD5 |
b494ef7c2cc4847497992acee08271f1
|
|
| BLAKE2b-256 |
fd990c56575f812ff8a172bd57cd4d6c950877f353affb6948ff1ce872c3856c
|