import time start_time = time.time() do something # here your actual code/routine print("Process finished --- %s seconds ---" % (time.time() - start_time))