The unified diff between revisions [fd68181d..] and [749fac9e..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'checks/pk_bench.cpp'

#
#
# patch "checks/pk_bench.cpp"
#  from [7127408e364db54d1dd15f5d911a96f6588f6cd8]
#    to [7f9fc9df119702295302015c6542cbd94e44af2d]
#
============================================================
--- checks/pk_bench.cpp	7127408e364db54d1dd15f5d911a96f6588f6cd8
+++ checks/pk_bench.cpp	7f9fc9df119702295302015c6542cbd94e44af2d
@@ -9,8 +9,6 @@
 #include <botan/look_pk.h>
 #include <botan/rng.h>

-#include <botan/parsing.h>
-
 using namespace Botan;

 #include "common.h"
@@ -55,6 +53,7 @@ void bench_pk(const std::string& algo, b
      ad-hoc format (the RW algorithm has no assigned OID that I know of, so
      there is no way to encode a RW key into a PKCS #8 structure).
    */
+   try {

    if(algo == "All" || algo == "RSA")
       {
@@ -178,11 +177,10 @@ void print_result(bool html, u32bit runs
 void print_result(bool html, u32bit runs, u64bit clocks_used,
                   const std::string& algo_name, const std::string& op)
    {
-   double seconds = (double)clocks_used / get_ticks();
+   double seconds = static_cast<double>(clocks_used) / get_ticks();
    double mseconds_per_run = 1000 * (seconds / runs);
    double runs_per_sec = runs / seconds;

-
    if(html)
       {
       std::cout << "   <TR><TH>" << algo_name << " (" << op << ") <TH>";