Module: Beaker::Shared::Timed

Included in:
Beaker::Shared
Defined in:
lib/beaker/shared/timed.rb

Instance Method Summary collapse

Instance Method Details

#run_and_report_durationObject



4
5
6
7
8
# File 'lib/beaker/shared/timed.rb', line 4

def run_and_report_duration
  start = Time.now
  yield
  Time.now - start
end