On Tue, 14 Oct 2014 22:08:20 +0200, "Jonas 'Sortie' Termansen" wrote:

> Unfortunately, OS X doesn't have clock_gettime, so the portable version will
> have to add back a times call as a fallback, or perhaps use gettimeofday (but
> this doesn't have the proper time-doesn't-go-backwards semantics).

You can emulate clock_gettime() on Mac OS X and use mach_absolute_time()
for CLOCK_MONOTONIC.  Portable could use something like:
http://www.sudo.ws/repos/sudo/file/adf7997a0a65/lib/util/clock_gettime.c

 - todd

Reply via email to