> "Linux maintains a system clock with a resolution (in the 2.4 kernel
> supplied with TS-Linux) of 10millisec. Any user space program can use
> standard Unix/Linux timer functions alarm(2), getitimer(2), setitimer(2)
Regrettably, alarm() has a granularity of seconds.
But setitimer looks promising:
int setitimer(int which, const struct itimerval *value,
struct itimerval *ovalue);
Where struct itimerval's contain seconds and microseconds
On countdown, the timer resets and delivers a SIGALRM.
Now my challenge is how to catch and deal with a SIGALRM.
Thanks
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|