pub fn previous_segment_delta(
    timer: &Timer,
    segment_index: usize,
    comparison: &str,
    method: TimingMethod
) -> Option<TimeSpan>
Expand description

Gets the amount of time lost or gained on a certain split.

  • timer: The current Timer.
  • segment_index: The index of the split for which the delta is calculated.
  • comparison: The comparison that you are comparing with.
  • method: The TimingMethod that you are using.

Returns the segment delta for a certain split, returning None if the split is not completed yet.