diff options
Diffstat (limited to 'stage1/logger.scala')
-rw-r--r-- | stage1/logger.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stage1/logger.scala b/stage1/logger.scala index 91a2412..c21dc86 100644 --- a/stage1/logger.scala +++ b/stage1/logger.scala @@ -11,7 +11,7 @@ case class Logger(enabledLoggers: Set[String], start: Long) { def this(enabledLoggers: Option[String], start: Long) = this( enabledLoggers.toVector.flatMap( _.split(",") ).toSet, start ) def log(name: String, msg: => String) = { - val timeTaken = ((start - System.currentTimeMillis) / 1000).toString + val timeTaken = ((System.currentTimeMillis.toDouble - start) / 1000).toString System.err.println( s"[${" "*(6-timeTaken.size)}$timeTaken][$name] $msg" ) } |