All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jtransc.injector.Profiler.kt Maven / Gradle / Ivy

package com.jtransc.injector

import com.jtransc.time.measureTime

@Singleton
class Profiler {
	inline fun  measure(name: String, callback: () -> T): T {
		com.jtransc.log.log("$name...")
		val (time, result) = measureTime { callback() }
		com.jtransc.log.log("Ok ($time)")
		return result
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy