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 org.polyfrost.polyui.property.Settings.debug is active.

Since

0.18.5