toLong

open override fun toLong(unit: Duration.Unit): Long

Expresses the value of this under the given unit as a Long.