Introduce ClockMark.hasPassedNow, hasNotPassedNow functions

Makes it more clear to use them than comparing elapsed with Duration.ZERO.
This commit is contained in:
Ilya Gorbunov
2019-08-15 19:12:36 +03:00
parent 44195d436e
commit a985402507
3 changed files with 40 additions and 5 deletions
@@ -5288,6 +5288,8 @@ public abstract interface class kotlin/time/Clock {
public abstract class kotlin/time/ClockMark {
public fun <init> ()V
public abstract fun elapsedNow ()D
public final fun hasNotPassedNow ()Z
public final fun hasPassedNow ()Z
public fun minus-LRDsOJo (D)Lkotlin/time/ClockMark;
public fun plus-LRDsOJo (D)Lkotlin/time/ClockMark;
}