SplitScript reference / Duration / totalSeconds
Duration.totalSeconds
Method
Duration.totalSeconds() -> f64
Returns the complete duration as floating-point seconds.
The f64 result preserves nanosecond precision for ordinary autosplitter time spans but may round extremely large durations.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Compare elapsed time in seconds
if Duration.fromMilliseconds(750.0).totalSeconds() >= 0.5 {
print("ready")
}