gov.nih.nlm.nls.utils
Class Stats

java.lang.Object
  extended bygov.nih.nlm.nls.utils.Stats

public final class Stats
extends java.lang.Object

Stats reports the amount of time the process has taken so far, along with how much memory is currently in use.

Version:
$Id: Stats.java,v 1.5 2004/09/16 15:15:30 divita Exp $

Constructor Summary
Stats(int pInterval)
          This is a constructor for Stats
 
Method Summary
 void finalReport(int pTotalProcessed)
          Method finalReport
 java.lang.String getFinalTime()
          Method getFinalTime returns the final time in minutes
 java.lang.String getFinalVMSize()
          Method getFinalVMSize returns the Max VM size in Megabytes
 void report()
          Method report reports the number of times this has been called, (so call this method as many times as you want to count something).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stats

public Stats(int pInterval)
This is a constructor for Stats

Parameters:
pInterval - This paramter is set to what itteration you want stats to be reported.
Method Detail

report

public void report()
Method report reports the number of times this has been called, (so call this method as many times as you want to count something). the memory size at the time, the total memory, and how much time since the first time this was called.


finalReport

public void finalReport(int pTotalProcessed)
Method finalReport

Parameters:
pTotalProcessed -

getFinalTime

public java.lang.String getFinalTime()
Method getFinalTime returns the final time in minutes


getFinalVMSize

public java.lang.String getFinalVMSize()
Method getFinalVMSize returns the Max VM size in Megabytes



The use and distribution of this material is subject to the terms and conditions included in the file SPECIALIST_NLP_TOOLS_TERMS_AND_CONDITIONS.TXT, located in the root directory of the distribution.