aboutsummaryrefslogtreecommitdiffstats
path: root/checks/timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'checks/timer.cpp')
-rw-r--r--checks/timer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/checks/timer.cpp b/checks/timer.cpp
index c42aaa4b2..8460257d4 100644
--- a/checks/timer.cpp
+++ b/checks/timer.cpp
@@ -1,4 +1,5 @@
#include "timer.h"
+#include <botan/benchmark.h>
#include <iomanip>
Timer::Timer(const std::string& n, u32bit e_mul) :
@@ -29,6 +30,12 @@ void Timer::stop()
}
}
+u64bit Timer::get_clock()
+ {
+ Botan::Default_Benchmark_Timer timer;
+ return timer.clock();
+ }
+
std::ostream& operator<<(std::ostream& out, Timer& timer)
{
//out << timer.value() << " ";