dautil.IO.timeit_IO module

dautil.IO.timeit_IO.slowdown(f, second=1, verbose=False)[source]

decorator to guarantee function f takes at least second to finish.

dautil.IO.timeit_IO.timeit_IO(f)[source]

a decorator to add keyword timeit_filename to the function args if timeit_filename not None, dump time taken to that file