class Serf::Middleware::RequestTimer::Timer
Attributes
start_time[R]
Public Class Methods
new()
click to toggle source
# File lib/serf/middleware/request_timer.rb, line 33 def initialize @start_time = now end
Public Instance Methods
mark()
click to toggle source
# File lib/serf/middleware/request_timer.rb, line 37 def mark (now - @start_time).to_i end
now()
click to toggle source
# File lib/serf/middleware/request_timer.rb, line 41 def now Time.now.to_f * 1_000_000 end