I wanted to know if theres any timers in C linux programming and if anyone could give an example. So I don't want something like sleep(). Because I want the timer in an if statement since the statement will be in an infinite while loop. That onces the timer goes off then the program will process the code in the if statement. Is there anything like that in C linux.