Timer.h 541 B

12345678910111213141516171819202122232425262728293031323334
  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( const float time );
  13. void SetGameTimer( const float timer );
  14. int GetGameTimer() const;
  15. private:
  16. float m_SystemTimeTotal;
  17. float m_SystemTimeDelta;
  18. float m_GameTimeTotal;
  19. float m_GameTimeDelta;
  20. float m_GameTimer;
  21. };
  22. #endif // TIMER_H