class ActiveSupport::Notifications::Fanout::Subscribers::Timed - activesupport-4.2.3 Documentation

# class ActiveSupport::Notifications::Fanout::Subscribers::Timed

### Public Instance Methods

finish(name, id, payload) click to toggle source

    # File lib/active_support/notifications/fanout.rb, line 124
    def finish(name, id, payload)
      timestack = Thread.current[:_timestack]
      started = timestack.pop
      @delegate.call(name, started, Time.now, id, payload)
    end

publish(name, *args) click to toggle source

    # File lib/active_support/notifications/fanout.rb, line 115
    def publish(name, *args)
      @delegate.call name, *args
    end

start(name, id, payload) click to toggle source

    # File lib/active_support/notifications/fanout.rb, line 119
    def start(name, id, payload)
      timestack = Thread.current[:_timestack] ||= []
      timestack.push Time.now
    end