Module: TraceViz::Formatters::Helpers::TimeHelper

Included in:
TraceDataFormatter
Defined in:
lib/trace_viz/formatters/helpers/time_helper.rb

Instance Method Summary collapse

Instance Method Details

#execution_time_representation(trace_data) ⇒ Object



7
8
9
10
11
# File 'lib/trace_viz/formatters/helpers/time_helper.rb', line 7

def execution_time_representation(trace_data)
  return unless config.execution[:show_time] && trace_data.duration

  format("in %.6fms", trace_data.duration)
end