import time


def time_it(wrapped):
    """
    Decorator to use to get the time it takes to run a function. 
    """
    def inner(*args, **kwargs):
        t = time.time()
        ret = wrapped(*args, **kwargs)
        func_string = str(wrapped).split()[1]
        print('Execution time for function "%s": %s s' % (func_string,  time.time() - t))
        return ret
    return inner