Python ¿Cómo cuento el tiempo que tarda la clasificación en ejecutar en segundos? [cerrado]

from datetime import datetime

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

print(end - start)
SAMER SAEID