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-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5dd3609f751433b335aa29b6929d40e2c943f1d7255555e560d44d0a966a470 |
|
MD5 | e82833dc4b89baf021ac427de58cbde9 |
|
BLAKE2b-256 | c7548fb0a6582681ac02aa44c7655ee9a1507f2704c120dd1c3f232e387d7cec |