Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python print how long it takes to run

import time
start_time = time.time()
 #your program
print ("My program took", time.time() - start_time, "to run")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #print #long #takes #run
ADD COMMENT
Topic
Name
6+4 =