diff options
Diffstat (limited to 'src/compiler/scala/tools/util/AbstractTimer.scala')
-rw-r--r-- | src/compiler/scala/tools/util/AbstractTimer.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/util/AbstractTimer.scala b/src/compiler/scala/tools/util/AbstractTimer.scala index 8d445ca818..f734692a79 100644 --- a/src/compiler/scala/tools/util/AbstractTimer.scala +++ b/src/compiler/scala/tools/util/AbstractTimer.scala @@ -10,6 +10,7 @@ package scala.tools.util +import compat.Platform.currentTime import scala.collection.mutable.Stack /** @@ -35,12 +36,12 @@ abstract class AbstractTimer { /** Starts a new timer. */ def start() = { - starts += System.currentTimeMillis() + starts += currentTime } /** Ends the current timer. */ def stop(message: String): Unit = { - val stop = System.currentTimeMillis() + val stop = currentTime issue(message, stop - starts.pop) } |