timed

inline fun timed(log: Boolean = true, msg: String? = null, block: () -> Unit): Long

Time the block and return how long it took, as well as logging with the msg if log is true.

Since

1.1.61