Jason Evans b732c395b7 Refine nstime_update().
Add missing #include <time.h>.  The critical time facilities appear to
have been transitively included via unistd.h and sys/time.h, but in
principle this omission was capable of having caused
clock_gettime(CLOCK_MONOTONIC, ...) to have been overlooked in favor of
gettimeofday(), which in turn could cause spurious non-monotonic time
updates.

Refactor nstime_get() out of nstime_update() and add configure tests for
all variants.

Add CLOCK_MONOTONIC_RAW support (Linux-specific) and
mach_absolute_time() support (OS X-specific).

Do not fall back to clock_gettime(CLOCK_REALTIME, ...).  This was a
fragile Linux-specific workaround, which we're unlikely to use at all
now that clock_gettime(CLOCK_MONOTONIC_RAW, ...) is supported, and if we
have no choice besides non-monotonic clocks, gettimeofday() is only
incrementally worse.
2016-10-10 11:40:46 -07:00
..
2016-10-06 15:58:38 -07:00
2016-10-04 19:48:50 -07:00
2016-05-11 15:38:06 -07:00
2016-10-10 11:40:46 -07:00
2016-04-12 23:18:25 -07:00
2016-10-04 19:48:50 -07:00
2016-02-24 13:03:48 -08:00
2014-12-08 16:34:04 -08:00
2014-12-08 16:34:04 -08:00
2014-11-07 14:50:38 -08:00
2016-02-23 18:09:25 -08:00
2016-04-11 02:35:00 -07:00
2016-02-19 20:29:06 -08:00
2016-05-11 15:38:06 -07:00