Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python time a code segment

import time

start = time.time()
print("Hello World!")
end = time.time()
print(end - start) # seconds
 
PREVIOUS NEXT
Tagged: #python #time #code #segment
ADD COMMENT
Topic
Name
2+6 =