[Base] Clock::QueryHostUptimeMillis: change to 64-bit
This commit is contained in:
parent
a4a35b4e98
commit
84b8b444cf
|
@ -23,7 +23,7 @@ class Clock {
|
||||||
// Host time, in FILETIME format.
|
// Host time, in FILETIME format.
|
||||||
static uint64_t QueryHostSystemTime();
|
static uint64_t QueryHostSystemTime();
|
||||||
// Queries the milliseconds since the host began.
|
// Queries the milliseconds since the host began.
|
||||||
static uint32_t QueryHostUptimeMillis();
|
static uint64_t QueryHostUptimeMillis();
|
||||||
|
|
||||||
// Guest time scalar.
|
// Guest time scalar.
|
||||||
static double guest_time_scalar();
|
static double guest_time_scalar();
|
||||||
|
|
|
@ -39,8 +39,8 @@ uint64_t Clock::QueryHostSystemTime() {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t Clock::QueryHostUptimeMillis() {
|
uint64_t Clock::QueryHostUptimeMillis() {
|
||||||
return uint32_t(QueryHostTickCount() / (host_tick_frequency() / 1000));
|
return QueryHostTickCount() / (host_tick_frequency() / 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace xe
|
} // namespace xe
|
|
@ -36,8 +36,8 @@ uint64_t Clock::QueryHostSystemTime() {
|
||||||
return (uint64_t(t.dwHighDateTime) << 32) | t.dwLowDateTime;
|
return (uint64_t(t.dwHighDateTime) << 32) | t.dwLowDateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t Clock::QueryHostUptimeMillis() {
|
uint64_t Clock::QueryHostUptimeMillis() {
|
||||||
return uint32_t(QueryHostTickCount() / (host_tick_frequency() / 1000));
|
return QueryHostTickCount() / (host_tick_frequency() / 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace xe
|
} // namespace xe
|
||||||
|
|
Loading…
Reference in New Issue