[App] Add a flag to toggle high-performance timers

This commit is contained in:
DrChat 2018-05-22 17:31:30 -05:00
parent 73c30d87a8
commit 288af1c7e9
1 changed files with 6 additions and 1 deletions

View File

@ -24,6 +24,9 @@
#include <bcrypt.h>
DEFINE_bool(win32_high_freq, true,
"Requests high performance from the NT kernel");
namespace xe {
bool has_console_attached_ = true;
@ -83,7 +86,9 @@ int Main() {
auto entry_info = xe::GetEntryInfo();
// Request high performance timing.
RequestHighPerformance();
if (FLAGS_win32_high_freq) {
RequestHighPerformance();
}
// Convert command line to an argv-like format so we can share code/use
// gflags.