decorators.timer

Times the execution of the decorated function and prints the output.

Main use: debugging.

Output format:

print(f"{func.__name__} took {end_time - start_time:.2f} seconds.")

How to include:

include 'decorators.timer'

@timer
def myfunction() {
    time.sleep(1)
}

Or you could do this:

include 'decorators'

@decorators.timer
def myfunction() {
    pass
}