diff options
author | lloyd <[email protected]> | 2008-11-22 23:24:04 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-22 23:24:04 +0000 |
commit | 9c8384163f42967045252d4491792a30b52bf066 (patch) | |
tree | 98a1ed2ea610bfbb970f0de33dc64cba4a2a26e2 | |
parent | 6332672afb3bfe6e863e7effba235759e0fb2cbb (diff) |
Switch benchmark example command line arg from ms to seconds
-rw-r--r-- | doc/examples/benchmark.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/benchmark.cpp b/doc/examples/benchmark.cpp index b38da5388..d046e8d20 100644 --- a/doc/examples/benchmark.cpp +++ b/doc/examples/benchmark.cpp @@ -10,7 +10,7 @@ int main(int argc, char* argv[]) { if(argc <= 2) { - std::cout << "Usage: " << argv[0] << " ms <algo1> <algo2> ...\n"; + std::cout << "Usage: " << argv[0] << " seconds <algo1> <algo2> ...\n"; return 1; } @@ -21,7 +21,7 @@ int main(int argc, char* argv[]) Botan::Algorithm_Factory& af = Botan::global_state().algorithm_factory(); - double ms = std::atof(argv[1]); + double ms = 1000 * std::atof(argv[1]); for(size_t i = 2; argv[i]; ++i) { |