aboutsummaryrefslogtreecommitdiffstats
path: root/checks/bench.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-08-13 15:27:56 +0000
committerlloyd <[email protected]>2006-08-13 15:27:56 +0000
commit671061b187e594f3ce969ee8f10fa45f4ff70ff1 (patch)
treea5acdf57b7c2bfe03146c8922384058499aac5fd /checks/bench.cpp
parent25e64ec2aad7824fb1918d7722b1628386498a07 (diff)
Respect the --seconds command line argument with --bench-algo
Diffstat (limited to 'checks/bench.cpp')
-rw-r--r--checks/bench.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/checks/bench.cpp b/checks/bench.cpp
index 377aa6d5a..4c7024731 100644
--- a/checks/bench.cpp
+++ b/checks/bench.cpp
@@ -149,7 +149,7 @@ void benchmark(const std::string& what, bool html, double seconds)
}
}
-u32bit bench_algo(const std::string& name)
+u32bit bench_algo(const std::string& name, double seconds)
{
try {
std::vector<algorithm> algos = get_algos();
@@ -158,7 +158,7 @@ u32bit bench_algo(const std::string& name)
{
if(algos[j].name == name)
{
- bench(algos[j].name, algos[j].filtername, false, 3.0,
+ bench(algos[j].name, algos[j].filtername, false, seconds,
algos[j].keylen, algos[j].ivlen);
return 1;
}