aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/benchmark.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-02-20 21:59:14 +0000
committerlloyd <[email protected]>2012-02-20 21:59:14 +0000
commit8a31da4d60490753031267b18957c0c599bbee3b (patch)
tree0b6b4dc2ab8f070cd9ce9f2bfdd52aff8800bd10 /doc/examples/benchmark.cpp
parent4e74f4482e42743cbe078df20612baf81ca555bf (diff)
Enable TLS again (bad merge)
Fixes for examples. Remove locking from session manager in the asio example, now done by default in the lib.
Diffstat (limited to 'doc/examples/benchmark.cpp')
-rw-r--r--doc/examples/benchmark.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/examples/benchmark.cpp b/doc/examples/benchmark.cpp
index b5adb3d4f..a11054c0c 100644
--- a/doc/examples/benchmark.cpp
+++ b/doc/examples/benchmark.cpp
@@ -26,14 +26,13 @@ int main(int argc, char* argv[])
Botan::Algorithm_Factory& af = Botan::global_state().algorithm_factory();
- double ms = 1000 * std::atof(argv[1]);
+ std::chrono::milliseconds ms(static_cast<std::chrono::milliseconds::rep>(1000 * std::atof(argv[1])));
for(size_t i = 2; argv[i]; ++i)
{
std::string algo = argv[i];
- std::map<std::string, double> results =
- algorithm_benchmark(algo, af, rng, ms, 16);
+ auto results = algorithm_benchmark(algo, af, rng, ms, 16);
std::cout << algo << ":\n";
for(std::map<std::string, double>::iterator r = results.begin();