global
def increment(start_time, end_time = nil)
-
(void)-
Parameters:
-
end_time(Date) -- -
start_time(Date) --
def increment(start_time, end_time = nil) end_time ||= Time.new self.count += 1 ms = (end_time - start_time) * 1000 self.sum += ms self.sumsq += ms * ms tdigest.push(ms) end