95af46861a
bf3c217238
1 2
3
4
5
6 7 8 9 10 11
12
require 'benchmark' class << Benchmark remove_method :realtime def realtime r0 = Time.now yield r1 = Time.now r1.to_f - r0.to_f end end