Class: Time

Inherits:
Object show all
Defined in:
lib/ruby/time.rb

Class Method Summary collapse

Class Method Details

.measureObject



2
3
4
5
6
# File 'lib/ruby/time.rb', line 2

def self.measure
  start = now
  yield
  now - start
end