Timer.h 436 B

1234567891011121314151617181920212223242526272829
  1. #ifndef TIMER_H
  2. #define TIMER_H
  3. #include <OgreSingleton.h>
  4. class Timer : public Ogre::Singleton< Timer >
  5. {
  6. public:
  7. Timer();
  8. float GetSystemTimeTotal();
  9. float GetSystemTimeDelta();
  10. float GetGameTimeTotal();
  11. float GetGameTimeDelta();
  12. void AddTime( float time );
  13. private:
  14. float m_SystemTimeTotal;
  15. float m_SystemTimeDelta;
  16. float m_GameTimeTotal;
  17. float m_GameTimeDelta;
  18. };
  19. #endif // TIMER_H