# File lib/peek/views/mysql2.rb, line 35 def formatted_duration ms = duration * 1000 if ms >= 1000 "%.2fms" % ms else "%.0fms" % ms end end