Does anyone know of a way to use a timer in C; I mean make code execute, not at a specific time, but at certain intervals (such as so many seconds apart).
Thank You
Does anyone know of a way to use a timer in C; I mean make code execute, not at a specific time, but at certain intervals (such as so many seconds apart).
Thank You
_sleep() - <stdlib.h>
or
Sleep() - <windows.h>
You can use sleep() from <stdlib.h>, or alarm() from <unistd.h> (on a POSIX system).
for more precise delays you could also use interrupts or timed loops.
hasafraggin shizigishin oppashigger...