SplitScript reference / timer / segmentWasSplit
timer.segmentWasSplit
Function
timer.segmentWasSplit(index: u64) -> bool?
Reports how an earlier segment was advanced during this attempt.
Returns Some(true) when the segment was split, Some(false) when it was skipped, and None when the index has not been reached in the current attempt. This is historical attempt data; the current and later segment indices therefore return None.
Parameters
index: Zero-based segment index.
Effects: allocates, reads timer state
Runtime behavior: available everywhere; synchronous
Examples
Check whether the first segment was split
let firstSegmentWasSplit = timer.segmentWasSplit(0)