|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.gadgets.ProgressTrackingWatch
public class ProgressTrackingWatch
Tracks the progress of some long, multistep sequence. Can provide averages, estimates, etc.
| Constructor Summary | |
|---|---|
ProgressTrackingWatch(int numberOfSteps,
int peepholeSize)
Creates a new ProgressTrackingWatch for a process with the given number of steps. |
|
| Method Summary | |
|---|---|
double |
getAverage()
Get the average time for all runs. |
long |
getCurrentTime()
Get the time since last start. |
long |
getLastTime()
Get the last timing run. |
int |
getNumRuns()
Get the number of timing runs. |
long |
getTotalTime()
Get the total of all timing runs. |
void |
reset()
Reset everything. |
void |
start()
Start the clock. |
void |
stop()
Stop the clock. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProgressTrackingWatch(int numberOfSteps,
int peepholeSize)
| Method Detail |
|---|
public void start()
public void stop()
public long getLastTime()
public long getTotalTime()
public long getCurrentTime()
public int getNumRuns()
public double getAverage()
public void reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||