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 hashes)