This is the sleep-function I use
But it isn't super. The processor-usage will be 100% during the sleep. It is the best one can do in ANSI/ISO C++, though.Code:#include <ctime> sleep(double secs) { using namespace std; clock_t end_time = clock() + clock_t(secs*CLOCKS_PER_SEC); while (clock() < end_time); }