Re:Vim's 400 line function to wait for keyboard input
by jschwartzi on Wednesday July 15, 2015 @10:43PM
(#9895252)
There is no such guarantee when using CLOCK_REALTIME. If you need this guarantee, use the monotonic clock. I've had issues with graphics engines written naively assuming nobody would change CLOCK_REALTIME. It's a bad assumption because many embedded systems well not use ntp and will instead rely on a user to set the clock. It may go backwards if the user sets it backwards. It may even do so while your software is doing something like presenting the user with a UI to set the time.
[ Parent
| on HN ]
There are no comments on this comment yet.