python calculate time of execution of section of code code example
Example: find time of run for python code
import time
start_time = time.time()
main()
print("--- %s seconds ---" % (time.time() - start_time))
import time
start_time = time.time()
main()
print("--- %s seconds ---" % (time.time() - start_time))