duration

fun <R> KLogger.duration(operationName: String, operation: () -> R): R

Calls operation and returns the result. Additionally, logs its running time using KLogger.info.