Module: Trample::Timer

Included in:
Session
Defined in:
lib/trample/timer.rb

Instance Method Summary collapse

Instance Method Details

#timeObject



3
4
5
6
7
# File 'lib/trample/timer.rb', line 3

def time
  start = Time.now
  yield
  Time.now.to_f - start.to_f
end