commonMain.ag.granular.io.SystemUtils.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tiffany-jvm Show documentation
Show all versions of tiffany-jvm Show documentation
A library for parsing Tagged Image File Format (Tiff) files
The newest version!
package ag.granular.io
expect fun getTimeMillis(): Long
fun measureTime(message: String, block: () -> T): T {
val start = getTimeMillis()
val r = block()
println("$message took: ${getTimeMillis() - start} ms")
return r
}