Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how do I count the time that it takes for the sorting to execute in seconds? [closed]

from datetime import datetime

start = datetime.now()
your_func()
end = datetime.now() 

print(end - start)
 
PREVIOUS NEXT
Tagged: #python #I #count #time #takes #sorting #execute
ADD COMMENT
Topic
Name
2+1 =