Module: Cyrun::Timing

Defined in:
lib/cyrun/timing.rb

Class Method Summary collapse

Class Method Details

.runObject



5
6
7
8
9
10
11
12
# File 'lib/cyrun/timing.rb', line 5

def self.run
  start_time = Time.now.to_i

  yield

  end_time = Time.now.to_i
  end_time - start_time
end