Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ctime>
- const int milsecs = 1000;
- inline void pause(unsigned secs = 1U) // at least it pauses for 1 second...
- {
- clock_t wait = secs * milsecs + clock(); // don't forget this! I mean the " + clock() "
- // dont rely calling it from the while only
- while ( wait > clock() ) continue;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement