class ActiveSupport::Notifications::Event

def idle_time

#start! and the call to #finish!.
Returns the idle time time (in milliseconds) passed between the call to
def idle_time
  diff = duration - cpu_time
  diff > 0.0 ? diff : 0.0
end