This commit refactors the logging system by replacing direct calls to the Logger class with macros. This improves code readability and maintainability by providing a consistent and concise way to log messages throughout the engine. The 'macro.h' header file is added and included in multiple system classes to define these logging macros, centralizing logging functionality. Additionally, error handling is improved in imguiManager::IncrementBuildVersionInConfig by logging specific errors during file operations.
35 lines
602 B
C++
35 lines
602 B
C++
#ifndef _TIMERCLASS_H_
|
|
#define _TIMERCLASS_H_
|
|
|
|
|
|
//////////////
|
|
// INCLUDES //
|
|
//////////////
|
|
#include "Logger.h"
|
|
#include <windows.h>
|
|
#include "macro.h"
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
// Class name: timer_class
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
class timer_class
|
|
{
|
|
public:
|
|
timer_class();
|
|
timer_class(const timer_class&);
|
|
~timer_class();
|
|
|
|
bool Initialize();
|
|
void Frame();
|
|
|
|
float GetTime();
|
|
|
|
private:
|
|
float m_frequency;
|
|
INT64 m_startTime;
|
|
float m_frameTime;
|
|
|
|
};
|
|
|
|
#endif |