4 ms·
> he correct solution is to use a monotonically increasing time function, such Linux’s clock_gettime() or OS X’s mach_absolute_time(). At the expense of suppor
by sigzero 11y ago
> he correct solution is to use a monotonically increasing time function, such Linux’s clock_gettime() or OS X’s mach_absolute_time().
At the expense of supporting FEWER platforms.
- roghummal 11y agoAnother #ifdef would fix that! A wrapper function could hide the extra #ifdef, taking it out of OP's count. A macro defined during compilation would be even better|harder to understand.