Reverting problematic commits:

fa500f453d	Alex Tkachman	Today 19:47
725bebc23f	Alex Tkachman	Today 19:36
This commit is contained in:
Andrey Breslav
2011-12-27 21:26:20 +04:00
parent 617b3b5db5
commit 4579c9826f
43 changed files with 203 additions and 470 deletions
+19
View File
@@ -0,0 +1,19 @@
package std.util
/**
Executes current block and returns elapsed time in milliseconds
*/
fun measureTimeMillis(block: () -> Unit) : Long {
val start = System.currentTimeMillis()
block()
return System.currentTimeMillis() - start
}
/**
Executes current block and returns elapsed time in milliseconds
*/
fun measureTimeNano(block: () -> Unit) : Long {
val start = System.nanoTime()
block()
return System.nanoTime() - start
}