1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

Benchmark message.

This commit is contained in:
Cedric Beust 2015-10-19 16:47:03 -07:00
parent 5ad5e982a8
commit a93eb68705

View file

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