time

fun time(startNanos: Long, message: () -> Any? = { "" })

Log a message using TRACE level with the logging time.

Parameters

startNanos

The start logging time in nanoseconds.

message

The required message to log.


fun <T> time(message: () -> Any? = { null }, block: () -> T): T
fun <T> time(message: Any?, block: () -> T): T

Execute a lambda block and log a message using TRACE level with the logging time.

Parameters

message

The required message to log.

block

The lambda block to execute.