def timed(f):
    def wrapper(*args, **kwargs):
        s = time.time()
        r = f(*args, **kwargs)
        e = time.time()
        print("Spent %0.3f sec invoking %s" % (e-s, f.__name__))
        return r
    return wrapper
dataset/ETHPy150Open armon/pypred/bench.py/timed/original