import time start = time.time() # do something pass end = time.time() delta = end - start print("took %.2f seconds to process" % delta)