class Rack::Stats::Duration
Public Class Methods
new(ns)
click to toggle source
# File lib/rack/stats/timer.rb, line 4 def initialize(ns) @ns = ns end
Public Instance Methods
ms()
click to toggle source
# File lib/rack/stats/timer.rb, line 8 def ms; @ns / 1_000_000; end
s()
click to toggle source
# File lib/rack/stats/timer.rb, line 9 def s; ms / 1_000; end