Temps d'exécution de la fonction de mesure Kotlin
fun measure(text: String, code: () -> Unit) {
val time = measureTimeMillis(code)
println("execution time of ${text}: ${time}ms")
}
measure("foo", {
// <code-to-measure>
})
Determined Dunlin