toKotlinDuration

Converts this duration to a kotlin.time.Duration.

fun toKotlinDuration(): Duration