A Python package with some simple wrapper functions to print the execution time of methods
Project description
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
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
Close
Hashes for execution_time_wrapper-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbb59baad8739606a870df775aa83cb92689fd4ea6e4c531f552640cca0352e9 |
|
MD5 | 3431d0c5494427ec0f62ca892f9a0240 |
|
BLAKE2b-256 | 890d1c807b584df220579f1fd5223da87f2e32c3043117c8fd03fdc0d8dee33c |