from datetime import datetime


def execution_time(func):
    """Decorator to print in console the execution time of the 'func' function passed."""
    def wrapper(*args, **kwargs):
        t0 = datetime.now()
        res = func(*args, **kwargs)
        t1 = datetime.now()
        print(f"\nExecution time of '{func.__name__}' was: {t1-t0}")
        return res
    return wrapper