Equivalent to GetTickCount() on Linux
Posted
by Matt Joiner
on Stack Overflow
See other posts from Stack Overflow
or by Matt Joiner
Published on 2010-06-02T13:47:40Z
Indexed on
2010/06/02
13:53 UTC
Read the original article
Hit count: 259
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?
© Stack Overflow or respective owner