Answers for "python print how long it takes to run"

1

python print how long it takes to run

import time
start_time = time.time()
 #your program
print ("My program took", time.time() - start_time, "to run")
Posted by: Guest on January-10-2021

Code answers related to "python print how long it takes to run"

Python Answers by Framework

Browse Popular Code Answers by Language