MemberUpdater
Simple Timer class
This is a simple wrapper around the TimeEvent, which makes the later usable without having to subclass it every time.
m_timer.setInterval(1000);
m_timer.setCallback( boost::bind(&Class::update, this) );
m_timer.start();
- Warning:
- Note that the callback must be available when it is triggered. If your called function is a bound member function and it goes out of scope, when the callback is called you'll most likely have a segfault. So this is best used as a member calling an update function.
- Note:
- You don't have to call TimeManager::registerEvent ever
- See also:
- Console