Is there an example of a working timer that executes some function every x amount seconds using C.
I\'d appreciate an example working code.
If we do not want threads, we could use sleep
sleep
int time = 10; printf("time: %ds\n", time); int i = 0; while(i
The stuff is started every 1s, so we hope it can be done in this duration, otherwise it must take care of resources.