|
Scala example source code file (ReporterTimer.scala)
The Scala ReporterTimer.scala source code/* NSC -- new Scala compiler * Copyright 2002-2011 LAMP/EPFL * @author Martin Odersky */ package scala.tools.nsc package reporters import 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) } Other Scala examples (source code examples)Here is a short list of links related to this Scala ReporterTimer.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.