Method: Lono::Sets::TimeSpent#show_time_spent

Defined in:
lib/lono/sets/time_spent.rb

#show_time_spent(stack_set_operation) ⇒ Object



5
6
7
8
9
# File 'lib/lono/sets/time_spent.rb', line 5

def show_time_spent(stack_set_operation)
  seconds = stack_set_operation.end_timestamp - stack_set_operation.creation_timestamp
  time_took = pretty_time(seconds).color(:green)
  puts "Time took to complete stack set operation: #{time_took}"
end