Commit 6c4cd12f authored by Scott Vokes's avatar Scott Vokes
Browse files

Note gettimeofday(2) for second handling should use clock_gettime(2).

gettimeofday(2) is vulnerable to issues around time changes (DST, leap
seconds, other clock resets) that could cause strange behavior.
clock_gettime with CLOCK_MONOTONIC will give more accurate time deltas,
and should be used instead. (clock_gettime is not available on OSX,
and possibly other OSs, so it should be wrapped.)
parent e7f39d36
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment