measureTimeMicros
Deprecated
Warning since 1.9
Use measureTime() instead.
Replace with
import kotlin.time.measureTime
Content copied to clipboard
measureTime(block).inWholeMicroseconds
Content copied to clipboard
Executes the given block and returns elapsed time in microseconds (Kotlin/Native only).
This function is deprecated. To measure the duration of execution of a block of code, use measureTime or measureTimedValue instead. The resulting Duration then can be expressed as a Long number of microseconds using Duration.inWholeMicroseconds.