1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-24 11:43:05 +01:00

replace CLK_TCK for CLOCKS_PER_SEC

This commit is contained in:
Eriksson Monteiro 2014-04-06 22:51:36 +01:00
parent 5a5edf17fd
commit e65d1a3dd9

View File

@ -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;
}
}
}
}