android-components / mozilla.components.support.base.log.logger / Logger / measure

# measure

`fun measure(message: String, block: () -> Unit): Unit` (source)
`fun measure(message: String, block: () -> Unit): Unit` (source)

Measure the time it takes to execute the provided block and print a log message before and after executing the block.

Example log message: ⇢ doSomething() .. ⇠ doSomething() 12ms