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
using time.perf_counter
-
measure_real_time_decorator
using time.time
Import:
from yasiu.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.
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.1.tar.gz
(3.2 kB
view details)
File details
Details for the file yasiu.time-0.0.1.tar.gz.
File metadata
- Download URL: yasiu.time-0.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
797600d4462d490ac58ed2537b98cde863aec18b8314da4233b94af2f474bc77
|
|
| MD5 |
c82afd722007e5d38dde66185ce85f15
|
|
| BLAKE2b-256 |
f3f6c178f9613e63c7e31f28a93aa59566f25a58b2039e972604503c7d20dea0
|