Class: ActiveSupport::Notifications::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/dm-rails/railties/log_listener.rb

Instance Method Summary collapse

Instance Method Details

#durationObject



19
20
21
# File 'lib/dm-rails/railties/log_listener.rb', line 19

def duration
  payload[:duration] ? (payload[:duration] / 1000.0) : 1000.0 * (self.end - self.time)
end