C++ timer
C++ timer
will someone give me the source to a simple c++ timer that counts down in seconds? im working on that growing and shrinking zones project, i need it for something
- Lucifer
- Project Developer
- Posts: 8640
- Joined: Sun Aug 15, 2004 3:32 pm
- Location: Republic of Texas
- Contact:
OH man, I don't mean to be a dick, but if you're going to use a "Windows hater" graphic in your sig, you're going to have to quit asking VB programmer questions.
All a timer is is some thing that every time the main loop runs, it compares the current time versus the start time, and the interval, and if the current interval is greater than the target interval, it fires.
There are CPU timers too, but you'll need to dig through some documentation and learn something to use them.
All a timer is is some thing that every time the main loop runs, it compares the current time versus the start time, and the interval, and if the current interval is greater than the target interval, it fires.
There are CPU timers too, but you'll need to dig through some documentation and learn something to use them.