mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Benchmark message.
This commit is contained in:
parent
5ad5e982a8
commit
a93eb68705
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue