#include
#include
using namespace std;
void startTimer(int ms) {
clock_t end_time = clock() + ms * (CLOCKS_PER_SEC / 1000);
while (clock() < end_time) {}
}
int main () {
cout << "Waitig for 5 seconds..." << endl;<br> startTimer(5000); // 5s -> 5000ms
cout << "5 seconds left.";<br> cin.ignore();
return 0;
}