def timethis(fn):
    def wrapper(*args, **kwargs):
        start = time.time()
        result = fn(*args, **kwargs)
        print fn.__name__, 'took', time.time() - start
        return result

    return wrapper
dataset/ETHPy150Open seantis/seantis-questionnaire/questionnaire/profiler.py/timethis/original