getTimeMicros

Warning since 1.9

external fun getTimeMicros(): Long(source)
import kotlin.system.getTimeMicros

fun main() {
    val start = getTimeMicros()
    // ... code you want to time ...
    val duration = getTimeMicros() - start
    println("Execution time: $duration µs")
}

Source