SplitScript reference / Duration / totalMilliseconds
Duration.totalMilliseconds
Method
Duration.totalMilliseconds() -> f64
Returns the complete duration as floating-point milliseconds.
The f64 result may round extremely large durations.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Measure a debounce interval
if Duration.fromMilliseconds(300.0).totalMilliseconds() >= 250 {
print("ready")
}