aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-09-16 15:56:55 +0000
committerlloyd <[email protected]>2009-09-16 15:56:55 +0000
commit69e8cc40848b95a644fb952c73788e825c1683ba (patch)
treedaf20f3b26d0fee6c5e2f26854b07ff34eadc86d /doc
parentaaf319491523ae103da2fd459cd94f7018c1cbce (diff)
Use <chrono> in the runtime benchmarking code instead of the local
timers.
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/bench.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/examples/bench.cpp b/doc/examples/bench.cpp
index 0aedc699d..7d53e0557 100644
--- a/doc/examples/bench.cpp
+++ b/doc/examples/bench.cpp
@@ -66,7 +66,6 @@ int main()
u32bit milliseconds = 1000;
AutoSeeded_RNG rng;
- Default_Benchmark_Timer timer;
Algorithm_Factory& af = global_state().algorithm_factory();
@@ -75,7 +74,7 @@ int main()
std::string algo = algos[i];
std::map<std::string, double> speeds =
- algorithm_benchmark(algos[i], milliseconds, timer, rng, af);
+ algorithm_benchmark(algos[i], milliseconds, rng, af);
std::cout << algo << ":";