Function livesplit_core::analysis::state_helper::previous_segment_delta
source · 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 currentTimer
.segment_index
: The index of the split for which the delta is calculated.comparison
: The comparison that you are comparing with.method
: TheTimingMethod
that you are using.
Returns the segment delta for a certain split, returning None if the split is not completed yet.