timed

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

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

Since

0.18.5