Skip to content

python decorator that prints the running time of a function

License

Notifications You must be signed in to change notification settings

enricobacis/timeme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timeme

python decorator that prints the running time of a function

Description

This decorator prints the running time that a function needed to complete.

from timeme import timeme
from time import sleep

@timeme
def function(a, b):
    sleep(2)

function(1, 2)
# 'function' ((1, 2), {}) 2.00 sec

Installation

The package has been uploaded to PyPI, so you can install it with pip:

pip install timeme

About

python decorator that prints the running time of a function

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages