static double measure_runtime_seconds( IBenchmarkCase* benchmark, StopwatchType& stopwatch) { stopwatch.start(); benchmark->run(); stopwatch.measure(); return stopwatch.get_seconds(); }
static double measure_runtime_seconds( IBenchmarkCase* benchmark, StopwatchType& stopwatch, const size_t iteration_count) { stopwatch.start(); for (size_t i = 0; i < iteration_count; ++i) benchmark->run(); stopwatch.measure(); return stopwatch.get_seconds(); }