measureNanoTime

JVM
Native
1.0
inline fun measureNanoTime(block: () -> Unit): Long

Executes the given block and returns elapsed time in nanoseconds.