cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
timer/counter
timer/counter
Sep 23, 2008 at 8:39am UTC
boudemaniak
(1)
hi,
i want to use a timer in my program that you can set on a certain time and that it wil count down to zero with exact milliseconds. I'd like to use the library time.h but i dont know how to use it.
can someone help plz?
Sep 23, 2008 at 7:42pm UTC
Zaita
(2770)
Timers are not 100% accurate. But should be sufficient for milliseconds.
I'd look at using something like a loop with the Sleep() command, unless your willing to dive into multi-threads.
Topic archived. No new replies allowed.