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
On Unix, include #include .
#include
The call you're interested in is usleep(). Which takes microseconds, so you should multiply your millisecond value by 1000 and pass the result to usleep().
usleep()