C++ timer

Everything todo with programming goes HERE.
Post Reply
User avatar
ivantis
Round Winner
Posts: 269
Joined: Mon Mar 03, 2008 2:33 pm
Contact:

C++ timer

Post by ivantis »

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
Image
Image
Image
User avatar
Lucifer
Project Developer
Posts: 8640
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Post by Lucifer »

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.
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
ivantis
Round Winner
Posts: 269
Joined: Mon Mar 03, 2008 2:33 pm
Contact:

Post by ivantis »

it says syntax error near OH man
Image
Image
Image
User avatar
Lucifer
Project Developer
Posts: 8640
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Post by Lucifer »

ivantis wrote:it says syntax error near OH man
You forgot to insert your brain into the drive.
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
ivantis
Round Winner
Posts: 269
Joined: Mon Mar 03, 2008 2:33 pm
Contact:

Post by ivantis »

nevermind, im using the (unreliable and weird) one here
Image
Image
Image
Post Reply