Sha256: e937deb39a0c612a9f7583305e8b5eb982c5b3ec8a7940920389c4fe4782c5ef
Contents?: true
Size: 689 Bytes
Versions: 17
Compression:
Stored size: 689 Bytes
Contents
module Rack class MiniProfiler module TimerStruct # Timing system for a custom timers such as cache, redis, RPC, external API # calls, etc. class Custom < TimerStruct::Base def initialize(type, duration_ms, page, parent) @parent = parent @page = page @type = type start_millis = ((Time.now.to_f * 1000).to_i - page[:started]) - duration_ms super( :type => type, :start_milliseconds => start_millis, :duration_milliseconds => duration_ms, :parent_timing_id => nil ) end end end end end
Version data entries
17 entries across 17 versions & 2 rubygems