All Packages Class Hierarchy This Package Previous Next Index
Class com.andthehorseyourodeinon.utils.RunMetrics
java.lang.Object
|
+----com.andthehorseyourodeinon.utils.RunMetrics
- public class RunMetrics
- extends Object
RunMetrics is a class for tracking time. It's mostly useful for
providing and reporting run-time metrics of a process (or section of
code) that is run multiple times. It then can report on the average,
minimum, and maximum runtimes, along with total time used.
- Version:
- $Id: RunMetrics.java,v 1.1 2000/05/16 22:45:10 samuelg Exp $
-
RunMetrics()
-
-
RunMetrics(String)
-
-
end()
- stop the timing cycle
-
getAvgTime()
-
-
getLongestTime()
-
-
getName()
- get the name of this metric
-
getShortestTime()
-
-
getTotalSamples()
-
-
getTotalTime()
-
-
reportHTML()
- generate an HTML-formetted report on this metric, using a table
-
reportText()
- generate a text report on this metric.
-
setName(String)
- set the name of this metric
-
start()
- start the timing cycle
-
stop()
- stop the timing cycle.
RunMetrics
public RunMetrics()
RunMetrics
public RunMetrics(String name)
setName
public void setName(String name)
- set the name of this metric
getName
public String getName()
- get the name of this metric
start
public void start()
- start the timing cycle
stop
public void stop()
- stop the timing cycle. Better-named wrapper for the end method.
end
public void end()
- stop the timing cycle
reportText
public String reportText()
- generate a text report on this metric.
reportHTML
public String reportHTML()
- generate an HTML-formetted report on this metric, using a table
getAvgTime
public String getAvgTime()
getTotalTime
public String getTotalTime()
getShortestTime
public String getShortestTime()
getLongestTime
public String getLongestTime()
getTotalSamples
public String getTotalSamples()
All Packages Class Hierarchy This Package Previous Next Index