System-related utility functions.
Terminates the currently running process.
fun exitProcess(status: Int): Nothing
Gets current system time in microseconds since certain moment in the past, only delta between two subsequent calls makes sense.
fun getTimeMicros(): Long
Gets current system time in milliseconds since certain moment in the past, only delta between two subsequent calls makes sense.
fun getTimeMillis(): Long
Gets current system time in nanoseconds since certain moment in the past, only delta between two subsequent calls makes sense.
fun getTimeNanos(): Long
Executes the given block and returns elapsed time in nanoseconds.
fun measureNanoTime(block: () -> Unit): Long
Executes the given block and returns elapsed time in microseconds (Kotlin/Native only).
fun measureTimeMicros(block: () -> Unit): Long
Executes the given block and returns elapsed time in milliseconds.
fun measureTimeMillis(block: () -> Unit): Long
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.system/index.html