00001
00011 #ifndef __FrameTime_H__
00012 #define __FrameTime_H__
00013
00014
00015
00016
00017
00018
00019 class FrameTime
00020 {
00021 public:
00022 FrameTime();
00023
00024 float Update();
00025 float GetDeltaTime();
00026 int GetFrameCounter();
00027
00028 private:
00029 bool initialized_;
00030 float previousFrameTime_;
00031 float deltaTime_;
00032 int frameCounter_;
00033 };
00034
00035 #endif
00036