mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Syntax.
This commit is contained in:
parent
f70ddf9fa3
commit
4f87c14da3
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