1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00
This commit is contained in:
Cedric Beust 2015-10-14 00:17:42 -07:00
parent f70ddf9fa3
commit 4f87c14da3

View file

@ -3,6 +3,6 @@ package com.beust.kobalt.misc
public fun benchmark(message: String, run: () -> Unit) { public fun benchmark(message: String, run: () -> Unit) {
val start = System.currentTimeMillis() val start = System.currentTimeMillis()
run() run()
println("############# Time to ${message}: ${System.currentTimeMillis() - start} ms") println("############# Time to $message: ${System.currentTimeMillis() - start} ms")
} }