Skip to main content

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

1. Time Package

2. Math Package

3. Image Package

4. Pyplot visualisation Package

Project details


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page