Removed perfcounter_read() and perfcounter_freq() functions, since we can use QElapsedTimer for this purpose.
This commit is contained in:
parent
73521c7f98
commit
e3de94a9b1
@ -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);
|
||||
|
@ -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
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user