Is there a function like Sleep(time); that pauses the program for X milliseconds, but in C++?
Sleep(time);
Which header should I add and what is the function\'s sign
Prior to C++11, there was no portable way to do this.
A portable way is to use Boost or Ace library. There is ACE_OS::sleep(); in ACE.
ACE_OS::sleep();