measureTimeWithResult

inline fun <T> measureTimeWithResult(callback: () -> T): TimedValue<T>

Deprecated

Replace with

import kotlin.time.measureTimedValue
measureTimedValue(callback)

Executes the callback measuring the time it takes to complete. Returns a TimedResult with the time and the return value of the callback.