5 lines
92 B
Scala
5 lines
92 B
Scala
def time(f: => Unit)={
|
|
val s = System.currentTimeMillis
|
|
f
|
|
System.currentTimeMillis - s
|
|
}
|