How can I retrieve wall-time in Python using the standard library?
This question, and this question would suggest that something like clock_gettime(CLOCK_MONOTONIC_RAW) or /proc/uptime are most appropriate on Linux. On Windows, time.clock() has the desired effect.
I would use time.time(), but the function is not guaranteed to return monotonically (and linearly) increasing time values.