|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.timeindexing.time.StopWatch
A simple stop watch that returns the time that has elapsed since the StopWatch started.
Constructor Summary | |
StopWatch()
Create a StopWatch reporting in MillisecondScale. |
|
StopWatch(Scale theScale)
Create a StopWatch with a specific Scale |
Method Summary | |
RelativeTimestamp |
getLastReading()
Get the last reading. |
RelativeTimestamp |
read()
Read a new elapsed time from the StopWatch. |
protected void |
setElapsedTime()
|
protected void |
setStartTime()
|
StopWatch |
start()
Start the StopWatch. |
StopWatch |
stop()
Stop the StopWatch. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StopWatch()
public StopWatch(Scale theScale)
Method Detail |
public StopWatch start()
public StopWatch stop()
public RelativeTimestamp read()
public RelativeTimestamp getLastReading()
protected void setStartTime()
protected void setElapsedTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |