def timeit(func):
    import time
    def _timeit(*arg):
        t1 = time.time()
        res = func(*arg)
        t2 = time.time()
        print '%s took %0.3f ms' % (func.func_name, (t2-t1)*1000.0)
        import sys; sys.stdout.flush()
        return res
    return _timeit
dataset/ETHPy150Open boakley/robotframework-workbench/rwb/lib/decorators.py/timeit/original