Method: Jets::Cfn::Status#pretty_time
- Defined in:
- lib/jets/cfn/status.rb
#pretty_time(total_seconds) ⇒ Object
202 203 204 205 206 207 208 209 210 |
# File 'lib/jets/cfn/status.rb', line 202 def pretty_time(total_seconds) minutes = (total_seconds / 60) % 60 seconds = total_seconds % 60 if total_seconds < 60 "#{seconds.to_i}s" else "#{minutes.to_i}m #{seconds.to_i}s" end end |