Common: Add UWP support for helper classes
This commit is contained in:
@ -93,6 +93,7 @@ void Timer::SleepUntil(Value value, bool exact)
|
||||
if (diff <= 0)
|
||||
return;
|
||||
|
||||
#ifndef _UWP
|
||||
HANDLE timer = GetSleepTimer();
|
||||
if (timer)
|
||||
{
|
||||
@ -110,6 +111,7 @@ void Timer::SleepUntil(Value value, bool exact)
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// falling back to sleep... bad.
|
||||
Sleep(static_cast<DWORD>(static_cast<std::uint64_t>(diff) / 1000000));
|
||||
|
||||
Reference in New Issue
Block a user