From e292d9c1263fc74c26b26b9bd6f879ab25cc19ee Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 5 Sep 2008 12:46:18 +0000 Subject: Use the Timer class for all benchmarking --- checks/bench.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'checks/bench.h') diff --git a/checks/bench.h b/checks/bench.h index e101acdc2..f58ce3250 100644 --- a/checks/bench.h +++ b/checks/bench.h @@ -4,6 +4,25 @@ #include #include +#include +#include +#include "timer.h" + +#include + +class Benchmark_Report + { + public: + void report(const std::string& name, Timer timer) + { + std::cout << name << " " << timer << "\n"; + data[name].insert(timer); + } + + private: + std::map > data; + }; + void benchmark(const std::string&, Botan::RandomNumberGenerator&, bool html, double seconds); -- cgit v1.2.3