Subj : Re: usage of time() for timeout handling To : comp.arch.embedded,comp.programming From : Willem Date : Thu Jul 28 2005 09:51 pm Ed wrote: ) if you are only looking for time intervals why are you calling the wall ) clock function? ) ) Look into using the alarm() function. From the man page - ) ) ) In any event any previously set alarm is cancelled. This means that the *entire* process can only have one alarm running at a time. So it's unsuited as-is for more than one timeout at a time. ) I'm really surprised no one else mentioned this solution. And if you ) are working in a Microsoft OS, check for something similar. alarm() just isn't used much for timeouts, I guess. Maybe for the abovementioned reasone. Or maybe because the way signal handlers work differs subtly across platforms, and is hairy at best. SaSW, Willem -- Disclaimer: I am in no way responsible for any of the statements made in the above text. For all I know I might be drugged or something.. No I'm not paranoid. You all think I'm paranoid, don't you ! #EOT .