summaryrefslogtreecommitdiff
path: root/test/files/run/collections.scala
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2007-02-05 14:38:06 +0000
committermihaylov <mihaylov@epfl.ch>2007-02-05 14:38:06 +0000
commitfd8dff6dd8148e83d24f3be3f8b22b7f4b253760 (patch)
tree0d3e00aabbca154e09f89dd800c5f37cdd680e14 /test/files/run/collections.scala
parent611f4541686a87ba6d871a95951d476a288816a4 (diff)
downloadscala-fd8dff6dd8148e83d24f3be3f8b22b7f4b253760.tar.gz
scala-fd8dff6dd8148e83d24f3be3f8b22b7f4b253760.tar.bz2
scala-fd8dff6dd8148e83d24f3be3f8b22b7f4b253760.zip
MSIL-firendly test suit
Diffstat (limited to 'test/files/run/collections.scala')
-rwxr-xr-xtest/files/run/collections.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/files/run/collections.scala b/test/files/run/collections.scala
index e1f769bf4c..f0a005d198 100755
--- a/test/files/run/collections.scala
+++ b/test/files/run/collections.scala
@@ -1,4 +1,5 @@
import collection._
+import scala.compat.Platform.currentTime
object Test extends Application {
@@ -7,9 +8,9 @@ object Test extends Application {
def sum[A](xs: Iterable[int]) = (0 /: xs)((x, y) => x + y)
def time(op: => unit): unit = {
- val start = System.currentTimeMillis;
+ val start = currentTime
op
- if (printTime) Console.println(" time = "+(System.currentTimeMillis - start)+"ms")
+ if (printTime) Console.println(" time = "+(currentTime - start)+"ms")
}
def test(msg: String, s0: collection.immutable.Set[int], iters: int) = {