Removed perfcounter_read() and perfcounter_freq() functions, since we can use QElapsedTimer for this purpose.

This commit is contained in:
LoRd_MuldeR 2014-12-06 15:57:00 +01:00
parent 73521c7f98
commit e3de94a9b1
2 changed files with 0 additions and 28 deletions

View File

@ -145,10 +145,6 @@ namespace MUtils
//Open media file
MUTILS_API bool open_media_file(const QString &mediaFilePath);
//Performance counter
MUTILS_API qint64 perfcounter_read(void);
MUTILS_API qint64 perfcounter_freq(void);
//Process priority
MUTILS_API bool change_process_priority(const int priority);
MUTILS_API bool change_process_priority(const QProcess *proc, const int priority);

View File

@ -870,30 +870,6 @@ bool MUtils::OS::open_media_file(const QString &mediaFilePath)
return false;
}
///////////////////////////////////////////////////////////////////////////////
// PERFORMANCE COUNTER
///////////////////////////////////////////////////////////////////////////////
qint64 MUtils::OS::perfcounter_read(void)
{
LARGE_INTEGER counter;
if(QueryPerformanceCounter(&counter) == TRUE)
{
return counter.QuadPart;
}
return -1;
}
qint64 MUtils::OS::perfcounter_freq(void)
{
LARGE_INTEGER frequency;
if(QueryPerformanceFrequency(&frequency) == TRUE)
{
return frequency.QuadPart;
}
return -1;
}
///////////////////////////////////////////////////////////////////////////////
// DEBUGGER CHECK
///////////////////////////////////////////////////////////////////////////////