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

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 "print how long it takes for a function to run python"

Python Answers by Framework

Browse Popular Code Answers by Language