Ryan Allen wrote:
> I want to use a timer in my code, so for example at every second a
> function gets executed. There is a simple way of doing this in MFC C++
> called timer(), but I don't even know the name of the function for
> Linux. Is there a man page? How is this achieved in Linux??
Install an interrupt handler for SIGALRM, and use either alarm() or
setitimer() to start the timer.
If you want multiple timers, you would need to write some code to
manage a list of timers, and have the signal handler invoke the
appropriate functions.
--
Glynn Clements <[EMAIL PROTECTED]>