From 6e0c1682ca76f4ff78249beed177aa72200d46cd Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 30 Jun 2016 15:34:19 +0100 Subject: [PATCH] Removed a defunct workaround for an obscure bug in old Windows PCI hardware --- modules/juce_core/native/juce_win32_SystemStats.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/modules/juce_core/native/juce_win32_SystemStats.cpp b/modules/juce_core/native/juce_win32_SystemStats.cpp index 027d06b080..e07e6a09fc 100644 --- a/modules/juce_core/native/juce_win32_SystemStats.cpp +++ b/modules/juce_core/native/juce_win32_SystemStats.cpp @@ -260,17 +260,6 @@ public: { LARGE_INTEGER ticks; QueryPerformanceCounter (&ticks); - - const int64 mainCounterAsHiResTicks = (juce_millisecondsSinceStartup() * hiResTicksPerSecond) / 1000; - const int64 newOffset = mainCounterAsHiResTicks - ticks.QuadPart; - - // fix for a very obscure PCI hardware bug that can make the counter - // sometimes jump forwards by a few seconds.. - const int64 offsetDrift = abs64 (newOffset - hiResTicksOffset); - - if (offsetDrift > (hiResTicksPerSecond >> 1)) - hiResTicksOffset = newOffset; - return ticks.QuadPart + hiResTicksOffset; }