lib/mini_profiler/timer_struct/custom.rb in rack-mini-profiler-0.10.6 vs lib/mini_profiler/timer_struct/custom.rb in rack-mini-profiler-0.10.7

- old
+ new

@@ -6,10 +6,10 @@ 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 + start_millis = ((Process.clock_gettime(Process::CLOCK_MONOTONIC) * 1000).to_i - page[:started]) - duration_ms super( :type => type, :start_milliseconds => start_millis, :duration_milliseconds => duration_ms, :parent_timing_id => nil