i'm working on a timer that counts down from a set number of time until zero. i just don't understand clock() or the CLOCKS_PER_SECOND macro. how would i make the timer count down from lets say 20 seconds?
i figure if CLOCKS_PER_SECOND is the number of clock() 's in a second, then a function to make it count down from 20 seconds would look like this: