I'm looking for an equivalent to GetTickCount()
on Linux.
Presently I am using Python's time.time()
which presumably calls through to gettimeofday()
. My concern is that the time returned (the unix epoch), may change erratically if the clock is messed with, such as by NTP. A simple process or system wall time, that only increases positively at a constant rate would suffice.
Does any such time function in C or Python exist?