[−][src]Function livesplit_core::analysis::state_helper::previous_segment_delta
pub fn previous_segment_delta(
timer: &Timer,
segment_index: usize,
comparison: &str,
method: TimingMethod
) -> Option<TimeSpan>
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 timing method that you are using.
Returns the segment delta for a certain split, returning None if the split is not completed yet.