Permalink
Browse files

Use realtime to reduce garbage. [adymo]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8958 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 13a60b8 commit fa4d5f2dc1e63df9ce289aedea844fe69327241b @NZKoz NZKoz committed Feb 29, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/benchmarking.rb
View
2 actionpack/lib/action_controller/benchmarking.rb
@@ -48,7 +48,7 @@ def render_with_benchmark(options = nil, extra_options = {}, &block)
db_runtime = ActiveRecord::Base.connection.reset_runtime if Object.const_defined?("ActiveRecord") && ActiveRecord::Base.connected?
render_output = nil
- @rendering_runtime = Benchmark::measure{ render_output = render_without_benchmark(options, extra_options, &block) }.real
+ @rendering_runtime = Benchmark::realtime{ render_output = render_without_benchmark(options, extra_options, &block) }
if Object.const_defined?("ActiveRecord") && ActiveRecord::Base.connected?
@db_rt_before_render = db_runtime

0 comments on commit fa4d5f2

Please sign in to comment.