Answers for "python calculate time of execution of section of code"

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 "python calculate time of execution of section of code"

Python Answers by Framework

Browse Popular Code Answers by Language