SplitScript reference / Duration / greaterThan
Duration.greaterThan
Operator
Duration.greaterThan(other: Duration) -> bool
Reports whether this duration is longer than another duration.
This method implements the > operator using the normalized whole and fractional components without converting to floating point.
Parameters
other: The duration to compare against.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Check whether a delayed split is ready
let elapsed = Duration.fromMilliseconds(300.0)
let delay = Duration.fromMilliseconds(250.0)
let ready = elapsed > delay