reportertimer.scala
来自「JAVA 语言的函数式编程扩展」· SCALA 代码 · 共 21 行
SCALA
21 行
/* NSC -- new Scala compiler * Copyright 2002-2007 LAMP/EPFL * @author Martin Odersky */// $Id: ReporterTimer.scala 13250 2007-11-13 18:32:06Z michelou $package scala.tools.nsc.reportersimport scala.tools.util.AbstractTimer/** * This class implements a timer that uses a Reporter to issue * timings. */class ReporterTimer(reporter: Reporter) extends AbstractTimer { def issue(msg: String, duration: Long) = reporter.info(null, "[" + msg + " in " + duration + "ms]", false)}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?