KOTLIN MIST MIAR FUNKTY Czas wykonywania funkcji

fun measure(text: String, code: () -> Unit) {
    val time = measureTimeMillis(code)
    println("execution time of ${text}: ${time}ms")
}

measure("foo", {
	// <code-to-measure>
})
Determined Dunlin