Module: Mode::Commands::Helpers

Defined in:
lib/mode/commands/helpers.rb

Instance Method Summary collapse

Instance Method Details

#timer_block(&block) ⇒ Object



4
5
6
7
# File 'lib/mode/commands/helpers.rb', line 4

def timer_block(&block)
  started_at = Time.now
  return yield, (Time.now.to_f - started_at.to_f)
end