class Cucumber::Formatters::ProfileFormatter
def map_to_mean_times(step_times)
def map_to_mean_times(step_times) mean_times = [] step_times.each do |regexp, step_profiles| mean_execution_time = (step_profiles.inject(0) { |sum, step_details| step_details[3] + sum } / step_profiles.length) mean_times << [step_profiles, regexp, mean_execution_time] end mean_times end