diff options
-rw-r--r-- | checks/pk_bench.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/checks/pk_bench.cpp b/checks/pk_bench.cpp index 875485944..6cb1ee4d5 100644 --- a/checks/pk_bench.cpp +++ b/checks/pk_bench.cpp @@ -264,11 +264,10 @@ void print_result(bool html, u32bit runs, u64bit clocks_used, { std::cout << " <TR><TH>" << algo_name << " (" << op << ") <TH>"; -#if PRINT_MS_PER_OP - std::cout << mseconds_per_run; -#else - std::cout << runs_per_sec; -#endif + if(PRINT_MS_PER_OP) + std::cout << mseconds_per_run; + else + std::cout << runs_per_sec; std::cout << std::endl; } @@ -279,11 +278,10 @@ void print_result(bool html, u32bit runs, u64bit clocks_used, std::cout.setf(std::ios::fixed, std::ios::floatfield); std::cout.precision(2); -#if PRINT_MS_PER_OP - std::cout << mseconds_per_run << " ms / " << op << std::endl; -#else - std::cout << runs_per_sec << " ops / second (" << op << ")" << std::endl; -#endif + if(PRINT_MS_PER_OP) + std::cout << mseconds_per_run << " ms / " << op << std::endl; + else + std::cout << runs_per_sec << " ops / second (" << op << ")" << std::endl; } } |