plusAssign

operator fun plusAssign(duration: Duration)(source)

Advances the current reading value of this time source by the specified duration.

duration value is rounded down towards zero when converting it to a Long number of nanoseconds. For example, if the duration being added is 0.6.nanoseconds, the reading doesn't advance because the duration value is rounded to zero nanoseconds.

Since Kotlin

1.9

Throws

when the reading value overflows as the result of this operation.