Skip to main content

A Python package with some simple wrapper functions to print the execution time of methods

Project description

PyPI license PyPI version fury.io PyPI pyversions Downloads

Execution Time Wrapper

A simple package with a few method to get the execution time of methods through wrapping.

Usage

Currently, the package contains two methods, one which returns to sdout (print) and one which goes to a logger.

from execution_time import get_execution_time_log

@get_execution_time_log
def my_fun():
    print("Hello World!")

The same for the other method given, i.e. get_execution_time_print.

TODOs

[ ] Implement logger level

@2022, Leonardo Alchieri

People-Centered Computing Lab - Università della Svizzera italiana, Switzerland

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

execution_time_wrapper-1.0.0.tar.gz (3.1 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