From e3de94a9b1d40400bd3a2642c8825646df3ab2eb Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Sat, 6 Dec 2014 15:57:00 +0100 Subject: [PATCH] Removed perfcounter_read() and perfcounter_freq() functions, since we can use QElapsedTimer for this purpose. --- include/MUtils/OSSupport.h | 4 ---- src/OSSupport_Win32.cpp | 24 ------------------------ 2 files changed, 28 deletions(-) diff --git a/include/MUtils/OSSupport.h b/include/MUtils/OSSupport.h index 139edac..fd66c1f 100644 --- a/include/MUtils/OSSupport.h +++ b/include/MUtils/OSSupport.h @@ -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); diff --git a/src/OSSupport_Win32.cpp b/src/OSSupport_Win32.cpp index 0051d10..33d3934 100644 --- a/src/OSSupport_Win32.cpp +++ b/src/OSSupport_Win32.cpp @@ -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 ///////////////////////////////////////////////////////////////////////////////