Skip to content

gph/time-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

time-tracker

How it works?

# just pass your function as argument to time_tracker 
# and assign to a variable, so it'll receive your function modified
from time_tracker import tracker
...

def your_func():
    ...

your_func_tracked = tracker.timer(your_func)

# now just starting using the variable as you would call your function
your_func_tracked()

# or can be use as decorator
@tracker.timer
def your_func()
example output
TIME_SPENT: your_func took 5.01 seconds

PS: it's just a simple way to monitor any function.

About

Example how wrapper function works

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages