aboutsummaryrefslogtreecommitdiffstats
path: root/checks/timer.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-12-08 15:26:14 +0000
committerlloyd <[email protected]>2009-12-08 15:26:14 +0000
commit500392029c610b48695876a54cafb5585a75befb (patch)
treeeb4b922f5d54ddb45349f74f78216f93b7c47704 /checks/timer.cpp
parentd2ed3e0752b32db1377c498734c724e18af7c42b (diff)
parentf63359f348d347bebee036b11d0c9641ee3d56d6 (diff)
propagate from branch 'net.randombit.botan' (head 142a9359ba02d5dfcf3f2c9f99902f82ab41724e)
to branch 'net.randombit.botan.gost_3410' (head 064884e9c2fde8228effdd48e80fed78ff0c42cb)
Diffstat (limited to 'checks/timer.cpp')
-rw-r--r--checks/timer.cpp5
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)