import time


def time_it(f, *args, **kwargs):
    """ Returns time taken for a function in addition it's return value"""
    s_time = time.time()
    result = f(*args, **kwargs)
    return time.time() - s_time, result