KT-58046 Promote time sources, time marks, measureTime to stable
This commit is contained in:
committed by
Space Team
parent
fd54706e1a
commit
bbb36ce501
@@ -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
|
||||
|
||||
@@ -9,7 +9,6 @@ import java.util.concurrent.TimeUnit
|
||||
import kotlin.test.*
|
||||
import kotlin.time.*
|
||||
|
||||
@OptIn(ExperimentalTime::class)
|
||||
class DurationUnitJVMTest {
|
||||
@Test
|
||||
fun conversionFromTimeUnit() {
|
||||
|
||||
@@ -9,7 +9,6 @@ import kotlin.test.*
|
||||
import kotlin.time.*
|
||||
import kotlin.time.Duration.Companion.nanoseconds
|
||||
|
||||
@OptIn(ExperimentalTime::class)
|
||||
class TimeMarkJVMTest {
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user