Subscribe for more
#howto #python #pythonprogramming #pythontutorial #tutorial #1minutevideo #60secondsvideo #fasttutorial #beginners #coding #developer #time
Full Code Snippet
Example 1:
--------------------------
import time
startTime = time.time()
The for loop simulates long running code
print("Start...")
for x in range(30000000):
continue
print("Done!")
endTime = time.time()
totalTime = endTime - startTime
print("Total time to execute code is: ", totalTime)