Timing system for a custom timers such as cache, redis, RPC, external API calls, etc.
# File Ruby/lib/mini_profiler/custom_timer_struct.rb, line 9 def initialize(type, duration_ms, page, parent) @parent = parent @page = page @type = type super("Type" => type, "StartMilliseconds" => ((Time.now.to_f * 1000).to_i - page['Started']) - duration_ms, "DurationMilliseconds" => duration_ms, "ParentTimingId" => nil) end
Generated with the Darkfish Rdoc Generator 2.