import timeit start = timeit.default_timer() #Your statements here stop = timeit.default_timer() print('Time: ', stop - start)