Package-level declarations

System-related utility functions.

Functions

Link copied to clipboard
inline fun exitProcess(status: Int): Nothing

Terminates the currently running process.

Since Kotlin 1.0
Link copied to clipboard
inline fun measureNanoTime(block: () -> Unit): Long

Executes the given block and returns elapsed time in nanoseconds.

Since Kotlin 1.0
Link copied to clipboard
inline fun measureTimeMillis(block: () -> Unit): Long

Executes the given block and returns elapsed time in milliseconds.

Since Kotlin 1.0