Pausing a while loop for a set amount of milliseconds?

Is there another file to pause the console for a set amount of time without using windows.h? I'm on a Chromebook and I'm not able to use offline IDEs/compilers so I have to stick to online compilers. I'm currently using one that doesn't have windows.h but it does have conio.h, which I'm using for something.

Basically, I just need some way to pause a loop for a set amount of time.

Ex: Add 1 to an int variable every 5 seconds
If you use an online compiler that supports C++11 - like - you can use std::this_thread::sleep_for
Topic archived. No new replies allowed.