class method
self.realtime
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
self.realtime()
No documentation comment.
Source
# File activesupport/lib/active_support/core_ext/benchmark.rb, line 6
def realtime
r0 = Time.now
yield
r1 = Time.now
r1.to_f - r0.to_f
end
Defined in activesupport/lib/active_support/core_ext/benchmark.rb line 6
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Benchmark