Python: Time the execution of a program
import time
start_time = time.time()
main()
print("--- %s seconds ---" % (time.time() - start_time))
Via Stack Overflow.
import time
start_time = time.time()
main()
print("--- %s seconds ---" % (time.time() - start_time))
Via Stack Overflow.
Leave a comment