mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
replace CLK_TCK for CLOCKS_PER_SEC
This commit is contained in:
parent
5a5edf17fd
commit
e65d1a3dd9
1 changed files with 3 additions and 3 deletions
|
@ -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--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue