The current implementation of TagConsumer.measureTime uses a custom time implementation. With Kotlin 1.9, TimeSource is finally stable so we can use it instead. This also allows us to use TimedValue.
Another advantage: The standard lib also provides a TimeSource.Monotonic for WASI, so adding WASI support removes the need to implement currentTimeMillis by ourself.
This is a binary breaking change.
The current implementation of
TagConsumer.measureTime
uses a custom time implementation. With Kotlin 1.9,TimeSource
is finally stable so we can use it instead. This also allows us to useTimedValue
.Another advantage: The standard lib also provides a
TimeSource.Monotonic
for WASI, so adding WASI support removes the need to implementcurrentTimeMillis
by ourself.