val Int.seconds: Duration
Extension method for easier construction of Durations in terms of integer seconds: val twoSeconds = 2.seconds.
val twoSeconds = 2.seconds
See Also
Duration.ofSeconds