Methods

Class/Module Index [+]

Quicksearch

Benchmark

Public Class Methods

ms() click to toggle source
# File lib/active_support/core_ext/benchmark.rb, line 16
def ms
  1000 * realtime { yield }
end
realtime() click to toggle source
# File lib/active_support/core_ext/benchmark.rb, line 8
def realtime
  r0 = Time.now
  yield
  r1 = Time.now
  r1.to_f - r0.to_f
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.