A tiny helper to measure execution time of a callable to ease your performance checks.
Project description
time_measure
A tiny helper to measure execution time of a callable to ease your performance checks.
Usage examples
Decorate your function or method with async_measure_time and see logs for execution time
measures after your function is fnished:
from measure_decorator import async_measure_time
@async_measure_time
async def coro_that_runs_long(*args, **kwargs):
...
Whenever the coro_that_runs_long is done, you can see the following in your app logs:
Func: coro_that_runs_long. Elapsed time in seconds: 0.10037329500482883
Happy debugging!
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
File details
Details for the file time_measure_decorator-0.0.1.tar.gz.
File metadata
- Download URL: time_measure_decorator-0.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61a49763be63df0c7b22bffec1565c68c625ab9705dc1a047d8c998ea1cd3c4c
|
|
| MD5 |
c69e3b5967f1637306955df92abd4d42
|
|
| BLAKE2b-256 |
73ce5b6bfe537c180e0b7f4cc6bc9433b1a176bcfad3d168556add3cae4272cf
|