public Method

Benchmark.realtime() { || ... }

There's no documentation for this item.

Source Code

# File active_support/core_ext/benchmark.rb, line 5
def realtime
  r0 = Time.now
  yield
  r1 = Time.now
  r1.to_f - r0.to_f
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.