louiscad
05/21/2025, 12:15 PMSystem.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…