method
Duration.seconds
Duration.seconds(n) -> int
A span of n whole seconds. Since a duration is just an int count of seconds, this is the identity — it exists so the unit is explicit at the call site.
Example
program Demo {
handler Step phase Update {
let cooldown = Duration.seconds(45)
}
}