Replacing the tick count timer with xplat abstraction (also better rate).

Fixes #346.
This commit is contained in:
Ben Vanik
2015-07-19 10:11:54 -07:00
parent 9bcc4e046c
commit edfa3f3fc0
7 changed files with 69 additions and 20 deletions

View File

@@ -36,6 +36,8 @@ uint64_t Clock::QueryHostSystemTime() {
return (uint64_t(t.dwHighDateTime) << 32) | t.dwLowDateTime;
}
uint32_t Clock::QueryHostUptimeMillis() { return ::GetTickCount(); }
uint32_t Clock::QueryHostUptimeMillis() {
return uint32_t(QueryHostTickCount() / (host_tick_frequency() / 1000));
}
} // namespace xe