import functools
import time


def timeElapse(func):
    """
        usage:
        @timeElapse
        def somefunc():
            ...
            ...

        somefunc()
    """
    @functools.wraps(func)
    def wrapper(*args,**kwargs):
        start=time.time()
        value=func(*args,**kwargs)
        func()
        finito=time.time()
        print("Time elapsed:{}".format(finito-start))
        return value
    return wrapper