Tugger the SLUGger!SLUG Mailing List Archives

[SLUG] c code timing function.


hi all

i am writing a c program and i want it to lie dormant then every say 5
mins wake up and test somthing and then lie again. It has to be c native
so i can port it but it must work in linux for the moment, i have
thought about using time_t but to test that i end up in
endless loops and all sorts of ugly things. 

Q
is there a way to wake up a prog every x seconds in C so no scripts please
:-)


thanks
ghoti
-- 
When life is hard to stand try kneeling.

I never met a calorie i didn't like ;-)