PerformanceTimer will no longer run while in release
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
#include "Core/PerformanceTimer.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#include <ctime>
|
||||
#include <fstream>
|
||||
|
||||
|
||||
cpu_timer PerformanceTimer::m_Timer;
|
||||
std::map<std::string, cpu_timer> PerformanceTimer::timers;
|
||||
std::string PerformanceTimer::currentTimerRunning = "";
|
||||
@@ -74,3 +77,15 @@ void PerformanceTimer::CreateExcelData()
|
||||
}
|
||||
someFileStream.close();
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
void PerformanceTimer::StartTimer(std::string nameOfTimer) {};
|
||||
void PerformanceTimer::StartTimerAndStopPrevious(std::string nameOfTimer) {};
|
||||
void PerformanceTimer::StopTimer(std::string nameOfTimer) {};
|
||||
void PerformanceTimer::SetFrameNumber(int frameNumber) {};
|
||||
|
||||
void PerformanceTimer::ResetAllTimers() {};
|
||||
void PerformanceTimer::CreateExcelData() {};
|
||||
|
||||
#endif //DEBUG
|
||||
|
||||
Reference in New Issue
Block a user