[stdlib][time] Rename Clock to TimeSource, ClockMark to TimeMark

see details in 1336da8453
This commit is contained in:
Vasily Levchenko
2020-01-27 13:32:28 +01:00
parent e4190d4ae8
commit 80655ef0f9
@@ -9,7 +9,7 @@ import kotlin.system.*
@SinceKotlin("1.3") @SinceKotlin("1.3")
@ExperimentalTime @ExperimentalTime
public actual object MonoClock : AbstractLongClock(unit = DurationUnit.NANOSECONDS), Clock { // TODO: interface should not be required here internal actual object MonotonicTimeSource : AbstractLongTimeSource(unit = DurationUnit.NANOSECONDS), TimeSource { // TODO: interface should not be required here
override fun read(): Long = getTimeNanos() override fun read(): Long = getTimeNanos()
override fun toString(): String = "Clock(nanoTime)" override fun toString(): String = "TimeSource(nanoTime)"
} }