Function livesplit_core::state_helper::live_segment_delta
[−]
[src]
pub fn live_segment_delta(
timer: &Timer,
split_number: usize,
comparison: &str,
method: TimingMethod
) -> Option<TimeSpan>
Gets the amount of time lost or gained on a certain split, using the live segment delta if the split is not completed yet.
timer
: The current timer.
split_number
: 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 the live segment delta if the split is not completed yet.