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