[stdlib][time] Rename Clock to TimeSource, ClockMark to TimeMark
see details in 1336da8453
This commit is contained in:
@@ -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)"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user