diff options
Diffstat (limited to 'checks/timer.cpp')
-rw-r--r-- | checks/timer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/checks/timer.cpp b/checks/timer.cpp index 8460257d4..1bdaebb7f 100644 --- a/checks/timer.cpp +++ b/checks/timer.cpp @@ -1,5 +1,5 @@ #include "timer.h" -#include <botan/benchmark.h> +#include <botan/time.h> #include <iomanip> Timer::Timer(const std::string& n, u32bit e_mul) : @@ -32,8 +32,7 @@ void Timer::stop() u64bit Timer::get_clock() { - Botan::Default_Benchmark_Timer timer; - return timer.clock(); + return Botan::get_nanoseconds_clock(); } std::ostream& operator<<(std::ostream& out, Timer& timer) |