Timer calls registered functors, pauses the program, and provides time functions. More...
#include "base/singleton.hh"#include "base/time.hh"Go to the source code of this file.
Classes | |
| class | base::TickFunctor |
| User-defined timer-tick functor. More... | |
| class | base::Timer |
| Timer calls registered functors, pauses the program, and provides time functions. More... | |
Namespaces | |
| namespace | base |
Library of base code. | |
| namespace | base::TimerDefs |
Defines | |
| #define | GET_TIMER() (base::Timer::GetInstance()) |
| #define | CLASS_TICK_FUNCTOR(CLASS, MEMBER) |
| #define | CLASS_TICK_FUNCTOR_BASIC |
Variables | |
| const bool | base::TimerDefs::TIMER_ENABLED = true |
| const bool | base::TimerDefs::TIMER_DISABLED = false |
| const Milliseconds | base::TimerDefs::MILLISECONDS_NEVER (1LL<< 62LL) |
| Timer::Register() will ignore. | |
| const Milliseconds | base::TimerDefs::MILLISECONDS_MIN (1) |
| (debug) | |
| const Milliseconds | base::TimerDefs::MILLISECONDS_MAX (THOUSAND *60LL *60LL) |
| (debug) 1 hour | |
Timer calls registered functors, pauses the program, and provides time functions.
| #define CLASS_TICK_FUNCTOR | ( | CLASS, | ||
| MEMBER | ||||
| ) |
class TickFunctor : public base::TickFunctor \ { \ public: \ TickFunctor( CLASS& obj ) : MEMBER(obj) { } \ virtual void Tick( const Milliseconds millisecElapsed ); \ private: \ CLASS& MEMBER; \ }; \ friend class TickFunctor;
| #define CLASS_TICK_FUNCTOR_BASIC |
class TickFunctor : public base::TickFunctor \ { \ public: \ virtual void Tick( const Milliseconds millisecElapsed ); \ }; \ friend class TickFunctor;
| #define GET_TIMER | ( | ) | (base::Timer::GetInstance()) |
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:10