|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.util.ProgressStats
public class ProgressStats
A simple class for keeping up with the progress of an operation.
| Constructor Summary | |
|---|---|
ProgressStats(int size)
Get an instance of ProgressStats to process the given number of things. |
|
| Method Summary | |
|---|---|
double |
getEstimatedTimeRemaining()
Get the estimated number of seconds remaining with the current average. |
double |
getEstimatedTimeRemaining(double avgProcessTime)
Get the estimated number of seconds remaining with the given average time per unit. |
long |
getLastProcessTime()
Get the number of milliseconds spent processing the last item. |
double |
getOverallAverage()
Get the overall average. |
double |
getRunningAverage()
Get the running average of the number of seconds spent processing. |
java.lang.String |
getStats()
Get a string representation of the processing statistics using the default format. |
java.lang.String |
getStats(java.lang.String format)
Get a string representation fo the processing statistics. |
void |
start()
Mark us having started processing something. |
void |
stop()
Mark this iteration as complete. |
java.lang.String |
toString()
String me. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProgressStats(int size)
| Method Detail |
|---|
public void start()
public void stop()
public double getRunningAverage()
public double getOverallAverage()
public double getEstimatedTimeRemaining(double avgProcessTime)
public double getEstimatedTimeRemaining()
public long getLastProcessTime()
public java.lang.String getStats(java.lang.String format)
The following arguments are available to this format string.
public java.lang.String getStats()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||