KT-58046 Promote time sources, time marks, measureTime to stable

This commit is contained in:
Ilya Gorbunov
2023-04-18 20:47:57 +02:00
committed by Space Team
parent fd54706e1a
commit bbb36ce501
15 changed files with 85 additions and 101 deletions
@@ -8,7 +8,6 @@ package kotlin.time
import kotlin.time.TimeSource.Monotonic.ValueTimeMark
@SinceKotlin("1.3")
@ExperimentalTime
internal actual object MonotonicTimeSource : TimeSource.WithComparableMarks {
private val zero: Long = System.nanoTime()
private fun read(): Long = System.nanoTime() - zero