Answers for "how to check in python how much time does the code takes to run"

6

find time of run for python code

import time
start_time = time.time()
main()
print("--- %s seconds ---" % (time.time() - start_time))
Posted by: Guest on December-10-2020

Code answers related to "how to check in python how much time does the code takes to run"

Python Answers by Framework

Browse Popular Code Answers by Language