method

monotonic_subscribe

rails latest stable - Class: ActiveSupport::Notifications
monotonic_subscribe(pattern = nil, callback = nil, &block)
public

Performs the same functionality as #subscribe, but the start and finish block arguments are in monotonic time instead of wall-clock time. Monotonic time will not jump forward or backward (due to NTP or Daylights Savings). Use monotonic_subscribe when accuracy of time duration is important. For example, computing elapsed time between two events.