diff --git a/pcsx2/GS/GSPerfMon.cpp b/pcsx2/GS/GSPerfMon.cpp index adc81da470..5f40489d74 100644 --- a/pcsx2/GS/GSPerfMon.cpp +++ b/pcsx2/GS/GSPerfMon.cpp @@ -34,10 +34,12 @@ void GSPerfMon::Put(counter_t c, double val) if (c == Frame) { #if defined(__unix__) || defined(__APPLE__) - // clock on linux will return CLOCK_PROCESS_CPUTIME_ID. - // CLOCK_THREAD_CPUTIME_ID is much more useful to measure the fps struct timespec ts; - clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); +# ifdef CLOCK_MONOTONIC_RAW + clock_gettime(CLOCK_MONOTONIC_RAW, &ts); +# else + clock_gettime(CLOCK_MONOTONIC, &ts); +# endif uint64 now = (uint64)ts.tv_sec * (uint64)1e6 + (uint64)ts.tv_nsec / (uint64)1e3; #else clock_t now = clock();