Wait function

Is there a line or function i can put to make the application wait before continuing on running the rest of the code?

I know in Lua 5.1, its "wait(1)" for 1 second, but is there one for C++?

Thanks guys.
in windows you can include windows.h
then use Sleep(howmanymilliseconds);

now this lets the processor do other things. which is good. even though its not cross platform. ive read of many alternatives many of them using a loop using a wait time or a loop clock and a timer to waste time and all of them were bashed because it was considered really bad to waste cpu cycles.

im not going to get into a debate with anyone. just what ive read.
Last edited on
Topic archived. No new replies allowed.