timeval: On Linux x86-64 systems refresh time whenever it is requested.
authorLeo Alterman <lalterman@nicira.com>
Tue, 7 Aug 2012 23:36:27 +0000 (16:36 -0700)
committerLeo Alterman <lalterman@nicira.com>
Thu, 9 Aug 2012 22:06:38 +0000 (15:06 -0700)
commit49635519bae2c14e44744825c907ccee9216bf90
treef6c2bb945a07e57d70ec219967e28657044b0ce5
parent4770e795f51cdff3b43325474997088f540c9b18
timeval: On Linux x86-64 systems refresh time whenever it is requested.

64-bit Linux appears to avoid syscalls for clock_gettime(), so we can get
higher resolution timing and avoid having a timer firing off SIGALRM
without introducing extra overhead.

Signed-off-by: Leo Alterman <lalterman@nicira.com>
lib/timeval.c
lib/timeval.h
tests/test-timeval.c