commit | d6384b09e137874d7cdf527e5bb50abba0ae5f95 | [log] [tgz] |
---|---|---|
author | Daniel Micay <danielmicay@gmail.com> | Thu Oct 16 17:02:18 2014 -0400 |
committer | Jason Evans <je@fb.com> | Fri Mar 13 14:07:35 2015 -0700 |
tree | 5ffaeef2a5810500744593dadb8d5c41185f283d | |
parent | f69e2f6fdab40c7612be5fd69960b8c7d40dba44 [diff] |
use CLOCK_MONOTONIC in the timer if it's available Linux sets _POSIX_MONOTONIC_CLOCK to 0 meaning it *might* be available, so a sysconf check is necessary at runtime with a fallback to the mandatory CLOCK_REALTIME clock.