class ActiveSupport::Notifications::Event

def duration

def duration
  @duration ||= 1000.0 * (self.end - time)
end