Answers for "python how to calculate how much time code takes"

0

python how to calculate how much time code takes

import time

start = time.time()

# the code you want to check here

end = time.time()
print("the code took",end-start,"seconds")
Posted by: Guest on April-17-2022

Code answers related to "python how to calculate how much time code takes"

Python Answers by Framework

Browse Popular Code Answers by Language