summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/symtab/SymbolLoaders.scala
diff options
context:
space:
mode:
authorSean Riggin <sriggin@gmail.com>2015-05-20 14:03:55 -0600
committerSean Riggin <sriggin@gmail.com>2015-05-26 14:30:10 -0600
commit3e159fa67afe8992a62ebdb00a324e4f133590cb (patch)
tree99dcf384470992c7c09ee191fdf3a99e0a926c77 /src/compiler/scala/tools/nsc/symtab/SymbolLoaders.scala
parent0c360f6d285fdea1fb240248b6c857cc942fbede (diff)
downloadscala-3e159fa67afe8992a62ebdb00a324e4f133590cb.tar.gz
scala-3e159fa67afe8992a62ebdb00a324e4f133590cb.tar.bz2
scala-3e159fa67afe8992a62ebdb00a324e4f133590cb.zip
SI-9322 Elapsed times in compiler calculated with
System.currentTimeMillis and System.nanoTime Reverted elapsedTime calculation in compiler to use System.currentTimeMillis, consistent with the start time.
Diffstat (limited to 'src/compiler/scala/tools/nsc/symtab/SymbolLoaders.scala')
-rw-r--r--src/compiler/scala/tools/nsc/symtab/SymbolLoaders.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/SymbolLoaders.scala b/src/compiler/scala/tools/nsc/symtab/SymbolLoaders.scala
index 8fd2ea45e4..a22428075c 100644
--- a/src/compiler/scala/tools/nsc/symtab/SymbolLoaders.scala
+++ b/src/compiler/scala/tools/nsc/symtab/SymbolLoaders.scala
@@ -8,7 +8,6 @@ package symtab
import classfile.ClassfileParser
import java.io.IOException
-import scala.compat.Platform.currentTime
import scala.reflect.internal.MissingRequirementError
import scala.reflect.internal.util.Statistics
import scala.reflect.io.{ AbstractFile, NoAbstractFile }
@@ -207,7 +206,7 @@ abstract class SymbolLoaders {
override def complete(root: Symbol) {
try {
- val start = currentTime
+ val start = java.util.concurrent.TimeUnit.NANOSECONDS.toMillis(System.nanoTime())
val currentphase = phase
doComplete(root)
phase = currentphase