Benchmark realtime in milliseconds.
Benchmark
Benchmark.realtime { User.all } # => 8.0e-05 Benchmark.ms { User.all } # => 0.074
Source: show | on GitHub
# File activesupport/lib/active_support/core_ext/benchmark.rb, line 13 def ms(&block) 1000 * realtime(&block) end