how to check time it takes to run code in python 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))