static double measure_runtime_ticks( IBenchmarkCase* benchmark, StopwatchType& stopwatch) { stopwatch.start(); benchmark->run(); stopwatch.measure(); return static_cast<double>(stopwatch.get_ticks()); }
static double measure_runtime_ticks( 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 static_cast<double>(stopwatch.get_ticks()); }