Hello! Is there an allocation-free, KMP equivalent...
# stdlib
l
Hello! Is there an allocation-free, KMP equivalent of Java's
System.nanoTime()
? I want to measure small things (at high frequency), without the measurement affecting the measurement too much.
Clock.System.now()
returns a newly allocated
Instant
, and
TimeSource.Monotonic.markNow()
returns a value class wrapping
ValueTimeMarkReading
, which I think is also not just a primitive but a full allocated object. And
measureTime
uses the latter function…
đź‘€ 1
âž• 1