Skip to content

Commit

Permalink
Print timing info to logDebug.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbradley committed Aug 14, 2014
1 parent e66f1b1 commit d036089
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ class DecisionTree (private val strategy: Strategy) extends Serializable with Lo

timer.stop("total")

//println(timer) // Print internal timing info.
logDebug("Internal timing for DecisionTree:")
logDebug(s"$timer")

new DecisionTreeModel(topNode, strategy.algo)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ class TimeTracker extends Serializable {
* Print all timing results in seconds.
*/
override def toString: String = {
s"Timing\n" +
totals.map { case (label, elapsed) =>
s" $label: ${elapsed / 1e9}"
}.mkString("\n")
totals.map { case (label, elapsed) =>
s" $label: ${elapsed / 1e9}"
}.mkString("\n")
}
}

0 comments on commit d036089

Please sign in to comment.