• Advertisement
Sign in to follow this  

pausing for x seconds

This topic is 4045 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I know there is a function that allows you to pause the game for X amount of seconds. I can't remember what it is and can't find it. Anyone know what Im talking about? Im trying to display information but each line only 2 seconds at a time.

Share this post


Link to post
Share on other sites
Advertisement
There is no such function, not in standard C++.

There are platform-specific functions (such as Sleep() in the Windows API) that allow you to delay, but these are usually not precise timers (for example in the case of Sleep(), the amount of time you specify is only a minimum, you might be held inactive longer).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement