diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 519903ca..3971b1f4 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -148,7 +148,13 @@ int64_t (*GetTimeImpl)(); int64_t GetTimeImplFallback() { +# ifdef CLOCK_MONOTONIC_RAW + struct timespec ts; + clock_gettime( CLOCK_MONOTONIC_RAW, &ts ); + return int64_t( ts.tv_sec ) * 1000000000 + int64_t( ts.tv_nsec ); +# else return std::chrono::duration_cast( std::chrono::high_resolution_clock::now().time_since_epoch() ).count(); +# endif } int64_t GetTimeImplCntvct()