diff --git a/Utilities/Thread.cpp b/Utilities/Thread.cpp index 8e536c0541..162329cf79 100644 --- a/Utilities/Thread.cpp +++ b/Utilities/Thread.cpp @@ -2427,7 +2427,7 @@ void thread_ctrl::wait_for_accurate(u64 usec) break; } - usec = (until - current).count(); + usec = std::chrono::duration_cast(until - current).count(); } #endif }