int main(){ while (true) { time_t cooldown = clock() + 100; if (clock() >= cooldown) { std::cout << clock() << std::endl; cooldown = clock() + 100; } }}
so..here's a simple class for a similiar thing
Anyway Flaze07 came up with some very useful code