Module: QAT::Reporter::Helpers::TimeFormat

Included in:
Times, Times::Report
Defined in:
lib/qat/reporter/helpers/time_format.rb

Overview

Namespace for Times Helpers

Instance Method Summary collapse

Instance Method Details

#human_formatted_time(time) ⇒ Time

Gets a human formatted time

Parameters:

  • time (Time)

    measure name

Returns:

  • (Time)


10
11
12
# File 'lib/qat/reporter/helpers/time_format.rb', line 10

def human_formatted_time(time)
  ::Time.at(time).utc.strftime("%Mm %Ss")
end