Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#ifndef _WIN32
# include <unistd.h>
#else
# include <windows.h>
#endif
#include <iostream>
#include <assert.h>
//Suspend execution of the calling process for ms milliseconds.
void wait_for (int ms)
{
assert (ms >= 0);//positive_argument
#ifndef _WIN32
usleep (ms);
#else
Sleep (ms);
#endif
}
//little test
int main ()
{
std::cout << "waiting 2 seconds ..." << std::endl;
wait_for (2000);
std::cout << "finished" << std::endl;
return 0;
}