Time decorators. Console timers.
Project description
Readme of yasiu.time
Module with useful measure time decorators.
Installation
pip install yasiu-time
Time decorators
-
measure_perf_time_decorator
decorator that measures time using time.perf_counter
-
measure_real_time_decorator
decorator that measures time using time.time
Import:
from yasiu_time.time import measure_perf_time_decorator
Print buffering will impact your performance!
- Use with cauction for multiple function calls
Use examples
@measure_perf_time_decorator()
def func():
...
@measure_perf_time_decorator(">4.1f")
def func():
...
@measure_perf_time_decorator(fmt=">4.1f")
def func():
...
Console execution timer
not here yet.
All packages
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
yasiu-time-0.0.2.tar.gz
(3.2 kB
view details)
File details
Details for the file yasiu-time-0.0.2.tar.gz.
File metadata
- Download URL: yasiu-time-0.0.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7066521d8a689e9b18a6e059dce433f40faeb4392f6c4fdcbc2653505ae08e6
|
|
| MD5 |
7a73824c71049f250cd0810cf9a9be8d
|
|
| BLAKE2b-256 |
4a0877a9015998707ed309b3afdc414181a6db0546d6eeee432d18d238cc2909
|