while loop to run every second?
Posted on 2003-02-21
Ive been looking for a small snipet of a while loop which will run every second. Ive looked at so many clock()s, CLOCKS_PER_SECs, ticks, sleep()s and delay()s that im going crazy!
I dont want to use sleep or delay. I just want a while loop that will repeat itself once every second. I dont want the while loop to run infinately and be delayed for one second every time, i want it to *only be executed once per second*