getRemainingDuration
internal fun getRemainingDuration(timeMark: ComparableTimeMark, duration: Duration): Duration(source)
Returns the remaining duration to wait before the time mark has elapsed the given duration.
Return
the remaining duration to wait before the time mark has elapsed the given duration. If the time mark has already elapsed the given duration, then the result is Duration.ZERO.
Parameters
timeMark
the time mark to check.
duration
the duration to check against.