I want to log how long something takes in real walltime. Currently I\'m doing this:
startTime = time.time()
someSQLOrSomething()
print \"That took %.3f secon
time.monotonic()
might be useful:
Return the value (in fractional seconds) of a monotonic clock, i.e. a clock that cannot go backwards. The clock is not affected by system clock updates. The reference point of the returned value is undefined, so that only the difference between the results of consecutive calls is valid.