Major update - Architecture Rework
This commit is contained in:
34
enginecustom/src/inc/system/Timerclass.h
Normal file
34
enginecustom/src/inc/system/Timerclass.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef _TIMERCLASS_H_
|
||||
#define _TIMERCLASS_H_
|
||||
|
||||
|
||||
//////////////
|
||||
// INCLUDES //
|
||||
//////////////
|
||||
#include "Logger.h"
|
||||
#include <windows.h>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Class name: TimerClass
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
class TimerClass
|
||||
{
|
||||
public:
|
||||
TimerClass();
|
||||
TimerClass(const TimerClass&);
|
||||
~TimerClass();
|
||||
|
||||
bool Initialize();
|
||||
void Frame();
|
||||
|
||||
float GetTime();
|
||||
|
||||
private:
|
||||
float m_frequency;
|
||||
INT64 m_startTime;
|
||||
float m_frameTime;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user