start = time.time() for i in range(10000): True end = time.time() print ("Time elapsed:", end - start)