[][src]Function livesplit_core::analysis::state_helper::check_live_delta

pub fn check_live_delta(
    timer: &Timer,
    split_delta: bool,
    comparison: &str,
    method: TimingMethod
) -> Option<TimeSpan>

Checks whether the live segment should now be shown.

  • timer: The current timer.
  • split_delta: Specifies whether to return a split delta rather than a segment delta and to start showing the live segment once you are behind.
  • comparison: The comparison that you are comparing with.
  • method: The timing method that you are using.

Returns the current live delta.