From 84b8b444cf2c2544e959c6fc83dd35fa9cd4b14a Mon Sep 17 00:00:00 2001 From: Triang3l Date: Fri, 5 Apr 2019 13:32:34 +0300 Subject: [PATCH] [Base] Clock::QueryHostUptimeMillis: change to 64-bit --- src/xenia/base/clock.h | 2 +- src/xenia/base/clock_posix.cc | 4 ++-- src/xenia/base/clock_win.cc | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/xenia/base/clock.h b/src/xenia/base/clock.h index f1bf6d31c..fba845c92 100644 --- a/src/xenia/base/clock.h +++ b/src/xenia/base/clock.h @@ -23,7 +23,7 @@ class Clock { // Host time, in FILETIME format. static uint64_t QueryHostSystemTime(); // Queries the milliseconds since the host began. - static uint32_t QueryHostUptimeMillis(); + static uint64_t QueryHostUptimeMillis(); // Guest time scalar. static double guest_time_scalar(); diff --git a/src/xenia/base/clock_posix.cc b/src/xenia/base/clock_posix.cc index 6fb2f652a..e2f1cf627 100644 --- a/src/xenia/base/clock_posix.cc +++ b/src/xenia/base/clock_posix.cc @@ -39,8 +39,8 @@ uint64_t Clock::QueryHostSystemTime() { return ret; } -uint32_t Clock::QueryHostUptimeMillis() { - return uint32_t(QueryHostTickCount() / (host_tick_frequency() / 1000)); +uint64_t Clock::QueryHostUptimeMillis() { + return QueryHostTickCount() / (host_tick_frequency() / 1000); } } // namespace xe \ No newline at end of file diff --git a/src/xenia/base/clock_win.cc b/src/xenia/base/clock_win.cc index faead286c..aa028c43b 100644 --- a/src/xenia/base/clock_win.cc +++ b/src/xenia/base/clock_win.cc @@ -36,8 +36,8 @@ uint64_t Clock::QueryHostSystemTime() { return (uint64_t(t.dwHighDateTime) << 32) | t.dwLowDateTime; } -uint32_t Clock::QueryHostUptimeMillis() { - return uint32_t(QueryHostTickCount() / (host_tick_frequency() / 1000)); +uint64_t Clock::QueryHostUptimeMillis() { + return QueryHostTickCount() / (host_tick_frequency() / 1000); } } // namespace xe