I have something like this:
import datetime
a = datetime.datetime.now()
do_something_for_a_long_time()
b = datetime.datetime.now()
c = b - a
print("Doing <something> took {c}".format(c))
The problem is that this works well but we want the seconds value to be in the form ., not microseconds?
I was able to isolate the milliseconds attribute from that timedelta object, it it seems it only has microseconds available.