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

Uploaded Source

File details

Details for the file execution_time_wrapper-1.0.0.tar.gz.

File metadata

  • Download URL: execution_time_wrapper-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.13

File hashes

Hashes for execution_time_wrapper-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dbb59baad8739606a870df775aa83cb92689fd4ea6e4c531f552640cca0352e9
MD5 3431d0c5494427ec0f62ca892f9a0240
BLAKE2b-256 890d1c807b584df220579f1fd5223da87f2e32c3043117c8fd03fdc0d8dee33c

See more details on using hashes here.

Supported by

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