import time


def mytimeit(func):
    """
    Decorator for automatically calculate the elapsed time.
    """
    def inner(*arg, **kwargs):
        start_time = time.time()
        result = func(*arg, **kwargs)
        end_time = time.time()
        print("Elapse time: {}\n".format(end_time - start_time))
        return result
    return inner