LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to adjust a timer???? (https://www.linuxquestions.org/questions/linux-software-2/how-to-adjust-a-timer-91192/)

perdesiz 09-10-2003 06:43 AM

how to adjust a timer????
 
I am programming in c and using gcc in RedHat.My question is:How may I adjust a timer that counts down for a given time period?

esben 09-10-2003 07:16 AM

Well, without more specifics I can only list some man pages:

man alarm -- send a signal to a process in x seconds
man pause -- wait for signal
man sleep -- wait x seconds
man select -- wait for input. With no input, useful as a fine-grained sleep
man fork -- create an additional process (useful to do something after a sleep/select)

What exactly did you have in mind?


All times are GMT -5. The time now is 11:04 PM.