Method: Roby::Log::Timings#display
- Defined in:
- lib/roby/log/timings.rb
#display(cumulative) ⇒ Object
149 150 151 152 153 154 155 156 157 158 159 160 161 |
# File 'lib/roby/log/timings.rb', line 149 def display(cumulative) header = ([REF_TIMING] + ALL_TIMINGS + ALL_NUMERIC_FIELDS).enum_for(:each_with_index). map { |n, i| "#{i + 1}_#{n}" }. join("\t") puts header each_cycle(cumulative) do |numeric, results| print "#{timeval_to_s(results.shift)} " print results.join(" ") print " " puts numeric.join(" ") end end |