-bool timer::is_repeating() const
-{
- return mode_ == repeat;
-}
-
-
-void timer::fire_expired_timers()
-{
- fire_expired_timers(ticks());
-}
-
-void timer::fire_expired_timers(scalar t)
-{
- if (next_expiration_ > t) return;
-
- hash<unsigned,timer*,hash_function>::iterator it;
- for (it = timers_.begin(); it != timers_.end(); ++it)
- {
- timer* timer = (*it).second;
- if (timer->is_expired()) timer->fire();
- }
-}
-
-
-#if HAVE_CLOCK_GETTIME