diff --git a/rpcs3/Gui/PADManager.cpp b/rpcs3/Gui/PADManager.cpp index fd7ef34f98..72c3613546 100644 --- a/rpcs3/Gui/PADManager.cpp +++ b/rpcs3/Gui/PADManager.cpp @@ -554,10 +554,10 @@ void PADManager::RunTimer(const u32 seconds, const u32 id) { m_seconds = seconds; clock_t t1, t2; - t1 = t2 = clock() / CLK_TCK; + t1 = t2 = clock() / CLOCKS_PER_SEC; while (m_seconds) { - if (t1 / CLK_TCK + 1 <= (t2 = clock()) / CLK_TCK) + if (t1 / CLOCKS_PER_SEC + 1 <= (t2 = clock()) / CLOCKS_PER_SEC) { UpdateTimerLabel(id); m_seconds--; @@ -570,4 +570,4 @@ void PADManager::RunTimer(const u32 seconds, const u32 id) break; } } -} \ No newline at end of file +}