Tell C++ console to wait

c++, console

Solution

It's platform specific. On Linux/UNIX, or other POSIX-compliant operating systems, you can use the `sleep` function, which takes a parameter in seconds. On Windows you can use `Sleep`, which takes a parameter in milliseconds.

Problem

What is the method to tell the console to wait for x seconds. Is there a built in method or must I make one.

Original source

Related problems