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; m_seconds = seconds;
clock_t t1, t2; clock_t t1, t2;
t1 = t2 = clock() / CLK_TCK; t1 = t2 = clock() / CLOCKS_PER_SEC;
while (m_seconds) 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); UpdateTimerLabel(id);
m_seconds--; m_seconds--;