Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how to calculate how much time code takes

import time

start = time.time()

# the code you want to check here

end = time.time()
print("the code took",end-start,"seconds")
 
PREVIOUS NEXT
Tagged: #python #calculate #time #code #takes
ADD COMMENT
Topic
Name
1+4 =