diff options
Diffstat (limited to 'Source/Core/Common/Timer.cpp')
| -rw-r--r-- | Source/Core/Common/Timer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/Common/Timer.cpp b/Source/Core/Common/Timer.cpp index 29febef6c5..0a23080c6f 100644 --- a/Source/Core/Common/Timer.cpp +++ b/Source/Core/Common/Timer.cpp @@ -185,7 +185,13 @@ void PrecisionTimer::SleepUntil(Clock::time_point target) // Spin for the remaining time. while (Clock::now() < target) + { +#if defined(_WIN32) + YieldProcessor(); +#else std::this_thread::yield(); +#endif + } } } // Namespace Common |
