diff --git a/rpcs3/Emu/RSX/Common/profiling_timer.hpp b/rpcs3/Emu/RSX/Common/profiling_timer.hpp index a31843b536..7df016b9d1 100644 --- a/rpcs3/Emu/RSX/Common/profiling_timer.hpp +++ b/rpcs3/Emu/RSX/Common/profiling_timer.hpp @@ -1,13 +1,14 @@ #pragma once #include +#include "time.hpp" namespace rsx { struct profiling_timer { bool enabled = false; - steady_clock::time_point last; + u64 last; profiling_timer() = default; @@ -15,7 +16,7 @@ namespace rsx { if (enabled) [[unlikely]] { - last = steady_clock::now(); + last = rsx::uclock(); } } @@ -27,8 +28,8 @@ namespace rsx } auto old = last; - last = steady_clock::now(); - return std::chrono::duration_cast(last - old).count(); + last = rsx::uclock(); + return static_cast(last - old); } }; }