From 44bbc7cea28bce7bd7e95988e422c531e2eb347b Mon Sep 17 00:00:00 2001 From: flobernd Date: Thu, 11 Jan 2018 02:44:26 +0100 Subject: [PATCH] Improved `ZydisPerfTest` --- examples/ZydisPerfTest.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/ZydisPerfTest.c b/examples/ZydisPerfTest.c index d7331a0..841e4e9 100644 --- a/examples/ZydisPerfTest.c +++ b/examples/ZydisPerfTest.c @@ -358,10 +358,11 @@ int main(int argc, char** argv) { time_t t; srand((unsigned)time(&t)); + } else + { + adjustProcessAndThreadPriority(); } - adjustProcessAndThreadPriority(); - for (uint8_t i = 0; i < ZYDIS_ARRAY_SIZE(tests); ++i) { FILE* file;