Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to time a python script

from datetime import datetime
start = datetime.now()
# some kind of code
print(datetime.now() - start)
 
PREVIOUS NEXT
Tagged: #time #python #script
ADD COMMENT
Topic
Name
1+8 =