For a timer more cross-platform and utilizing the c++ STL, take a look at C++ Cross-Platform High-Resolution Timer.
From there, simply create and call a function in a loop every 10 ~ 50 seconds using two of those cross-platform timers mentioned above.