Python mendapatkan waktu yang dieksekusi berdasarkan fungsi
from datetime import datetime
start_time = datetime.now()
# do your work here
end_time = datetime.now()
print('Duration: {}'.format(end_time - start_time))
Wojak's distant cousin