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 hashes)
Built Distribution
Close
Hashes for elapsed_time-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc8273e83ac101c751b797b4b5bc63aa0c4413f385bf5b440967e62de54e8d0d |
|
MD5 | b494ef7c2cc4847497992acee08271f1 |
|
BLAKE2b-256 | fd990c56575f812ff8a172bd57cd4d6c950877f353affb6948ff1ce872c3856c |