Subj : usage of time() for timeout handling To : comp.arch.embedded,comp.programming From : David Date : Wed Jul 27 2005 03:10 pm Hi gurus, I'm having some modules, that use time() for determine if a given activity has timed out. As the operating system time will be updated periodically with the time or the RTC chip, it is possible that the result of two calls to time() would give a smaller value on the second call. This would cause the timeout calculation to fail and result in unexpected behaviour. This situation could specially occour if the user changed the time of the system! How are you handling this problem? On could use the system tick for timeout calculations. But somewhere I read that for acuracy reason you should not do this for longer timeouts. How do you handle this problem? Thanks in adbance David .