|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.pearsoneduc.ip.util.IntervalTimer
A simple class for interval timing.
Constructor Summary | |
IntervalTimer()
|
Method Summary | |
double |
getElapsedTime()
Calculates elapsed time. |
boolean |
isStopped()
Indicates whether timer is currently inactive. |
boolean |
isTiming()
Indicates whether timer is currently active. |
void |
reset()
Resets the timer. |
void |
start()
Starts the timer. |
double |
stop()
Stops the timer (if it is running). |
java.lang.String |
toString()
Creates a String representation of timer status. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public IntervalTimer()
Method Detail |
public void start()
public double getElapsedTime()
public double stop()
public void reset()
public boolean isTiming()
public boolean isStopped()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |