Remove QueryPerformanceCounter code

This commit is contained in:
Akkadius
2015-01-19 03:22:23 -06:00
parent e428b373ac
commit ab4595f56d
4 changed files with 3 additions and 39 deletions
+2
View File
@@ -1,3 +1,5 @@
#include <iostream>
#include <string>
-16
View File
@@ -110,20 +110,4 @@ private:
extern EQEmuLog* LogFile;
#ifdef _EQDEBUG
class PerformanceMonitor {
public:
PerformanceMonitor(int64* ip) {
p = ip;
QueryPerformanceCounter(&tmp);
}
~PerformanceMonitor() {
LARGE_INTEGER tmp2;
QueryPerformanceCounter(&tmp2);
*p += tmp2.QuadPart - tmp.QuadPart;
}
LARGE_INTEGER tmp;
int64* p;
};
#endif
#endif
+1 -4
View File
@@ -118,9 +118,6 @@ void EQEmuLogSys::ProcessLogWrite(uint16 log_category, std::string message)
if (process_log){
process_log << time_stamp << " " << StringFormat("[%s] ", Logs::LogCategoryName[log_category]).c_str() << message << std::endl;
}
else{
// std::cout << "[DEBUG] " << ":: There currently is no log file open for this process " << "\n";
}
}
uint16 EQEmuLogSys::GetConsoleColorFromCategory(uint16 log_category){
@@ -140,7 +137,7 @@ uint16 EQEmuLogSys::GetConsoleColorFromCategory(uint16 log_category){
case Logs::Crash:
return Console::Color::LightRed;
default:
return Console::Color::White;
return Console::Color::Yellow;
}
}