lib/perfer/formatter.rb
# formats a duration with an 8-chars width
formats a duration with an 8-chars width
formats a duration with an 8 - chars width
def format_duration(time, scale = float_scale(time))
      if time == 0
        "    0   "
      else
        "#{format_float(time*10**-scale)} #{TIME_UNITS[scale]}"
      end
    end
def format_duration ( time , scale = float_scale ( time ) ) if time == 0 "    0   " else "#{format_float(time*10**-scale)} #{TIME_UNITS[scale]}" end end
formats a duration with an 8-chars width
formats a duration with an 8 - chars width
time
scale
float_scale