[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>
|
#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.
|
||||||
|
|
Loading…
Reference in New Issue