how to return time of running in python code example
Example: python how to measure code run in time
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))