aboutsummaryrefslogtreecommitdiffstats
path: root/checks/check.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/check.cpp
parent25e64ec2aad7824fb1918d7722b1628386498a07 (diff)
Respect the --seconds command line argument with --bench-algo
Diffstat (limited to 'checks/check.cpp')
-rw-r--r--checks/check.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/checks/check.cpp b/checks/check.cpp
index 6a7705090..0f6fc3c70 100644
--- a/checks/check.cpp
+++ b/checks/check.cpp
@@ -25,7 +25,7 @@ const std::string EXPECTED_FAIL_FILE = "checks/fail.dat";
void benchmark(const std::string&, bool html, double seconds);
void bench_pk(const std::string&, bool html, double seconds);
-u32bit bench_algo(const std::string&);
+u32bit bench_algo(const std::string&, double);
int validate();
void print_help();
@@ -62,7 +62,7 @@ int main(int argc, char* argv[])
if(opts.is_set("bench-algo"))
{
const std::string alg = opts.value("bench-algo");
- u32bit found = bench_algo(alg);
+ u32bit found = bench_algo(alg, seconds);
if(!found) // maybe it's a PK algorithm
bench_pk(alg, false, seconds);
}