Top Level Namespace
Defined Under Namespace
Modules: RedisHA
Instance Method Summary collapse
Instance Method Details
#bm(label) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/test.rb', line 6 def bm(label) t = Time.now.to_f yield d = (Time.now.to_f - t) * 1000 puts "#{label}: #{d.round(2)}ms" end |