|
||||||||||
| 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. |
String |
getStats()
Get a string representation of the processing statistics using the default format. |
String |
getStats(String format)
Get a string representation fo the processing statistics. |
protected long |
getTime()
Get the current time for this ProgressStats instance. |
void |
start()
Mark us having started processing something. |
void |
stop()
Mark this iteration as complete. |
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 |
|---|
protected long getTime()
public void start()
public void stop()
public double getRunningAverage()
public double getOverallAverage()
public double getEstimatedTimeRemaining(double avgProcessTime)
public double getEstimatedTimeRemaining()
public long getLastProcessTime()
public String getStats(String format)
The following arguments are available to this format string.
public String getStats()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||