[App] Add a flag to toggle high-performance timers
This commit is contained in:
parent
73c30d87a8
commit
288af1c7e9
|
@ -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.
|
||||
if (FLAGS_win32_high_freq) {
|
||||
RequestHighPerformance();
|
||||
}
|
||||
|
||||
// Convert command line to an argv-like format so we can share code/use
|
||||
// gflags.
|
||||
|
|
Loading…
Reference in New Issue