I usually use a scheduler for this, which you can use to call the method with fixed time intervals, for example:
this->schedule(schedule_selector(Game::UpdateTimer),1.0f);
in this case, it calls "Game: UpdateTimer" once per second. In the update timer, you simply decrease the counter by one, and when it reaches zero, stop the timer as follows:
this->unschedule( schedule_selector(Game::UpdateTimer));
and add a method called
void Game::UpdateTimer(float dt) { }
source share