>>> import timeit >>> tic=timeit.default_timer() >>> # Do Stuff >>> toc=timeit.default_timer() >>> toc - tic #elapsed time in seconds