import datetime
start_time = datetime.datetime.now()
end_time = datetime.datetime.now()
print (end_time - start_time)
I try to to use datetime
to get the execution time.
If it took almost 11 hours, it will show like 11:07:13.215032
If more than 24 hours, how to show the time?
e.g. 35 hours 11minutes 37 seconds
1) 35:11:37
2) 1:11:11:37
Which one will be shown?