Originally posted by Jerome Glisse
it never is used for accessing the wall time, but instead for timeouts
like in the pb_bufmgr_cache, or for benchmarks elsewhere.
So my thought was that it might make sense to replace it, if available,
with POSIX clock_gettime and a cheaper monotonic clock with an
unspecified starting point.
Also according to the manpage of gettimeofday,
POSIX.1-2008 marks gettimeofday() as obsolete, recommending the use of
which points to a Linux patch,
Accordingly I replaced gettimeofday in mesas's os_time_get(), src/gallium/auxiliary/os/os_time.c
with clock_gettime and CLOCK_REALTIME_COARSE.
It's working nicely, but the problem is that I don't see a significant difference