What purpose does os.difftime(t2, t1) serve that is not covered by t2 - t1?

Saturday, July 5, 2014

In this code



t1 = os.time()
do_something_slow()
t2 = os.time()

elapsed_diff = os.difftime(t2, t1)
elapsed_sub = t2 - t1


Under what circumstances will elapsed_diff be different to elapsed_sub?







http://ift.tt/1vJhKN3