Skip to main content

Decorator for measuring the execution time of a callable

$pip install measure-exec-time
from measure_exec_time import measure_time
from time import sleep



@measure_time
def foo1():
    sleep(2)
    return 22





@measure_time(show_timedelta=False, show_start_end=True)
def foo2():
    sleep(2)
    return 22





@measure_time(show_timedelta=True, show_start_end=False)
def foo3():
    sleep(2)
    return 22


foo1()
print('----------')
foo2()
print('----------')
foo3()


    

Metadata

Release files for measure-exec-time 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for measure-exec-time 0.10
File Size Uploaded Provenance Actions
measure_exec_time-0.10.tar.gz 3.3 kB Without provenance Details for measure_exec_time-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for measure-exec-time 0.10
File Interpreter ABI Platform Actions
measure_exec_time-0.10-py3-none-any.whl Python 3 none any Details for measure_exec_time-0.10-py3-none-any.whl

Total release size: 8.0 kB

Release files / measure_exec_time-0.10.tar.gz

Download URL measure_exec_time-0.10.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bedab9b1bb189f972447f7c2f018324c9d99e74ca0d3a1b1f893c4ef9e484374
BLAKE2b-256 checksum
How to use checksums
2c4f292fc339a6ef7f7c325143ff68743f402706dfd337c21d33db08903838ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / measure_exec_time-0.10-py3-none-any.whl

Download URL measure_exec_time-0.10-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef335c41d33002c82ec156ecae2dffd2e96462322eb2c7633911f993c9b1d746
BLAKE2b-256 checksum
How to use checksums
6741f66a9c55715972c11f016c36ae719838df23c9a381854cf9b3ff662f37e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for measure-exec-time 0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page