|
UC Berkeley Group for User Interface Research Updated November 17, 2000 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.berkeley.guir.lib.util.Timer
A class for doing stopwatch times.
This software is distributed under the Berkeley Software License.
Revisions: - GUIRLib-v1.0-1.0.0, Oct 16 1997, JH Created class - GUIRLib-v1.2-1.0.0, Jun 22 2000, JH Touched for GUIRLib release - GUIRLib-v1.3-1.0.0, Aug 11 2000, JH Touched for GUIRLib release - GUIRLib-v1.4-1.0.0, Aug 31 2000, JH Touched for GUIRLib release
Constructor Summary | |
Timer()
Default constructor. |
Method Summary | |
long |
getElapsedTime()
Get the elapsed time so far. |
long |
getStartTime()
Get the start time of the timer. |
long |
getStopTime()
Get the stop time of the timer. |
boolean |
isRunning()
See if the Timer is running or not. |
void |
resetTimer()
Completely reset the timer so that it is a new timer. |
void |
start()
Start the timer. |
void |
stop()
Stop the timer only if it is already running. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Timer()
Method Detail |
public long getElapsedTime()
public long getStartTime()
public long getStopTime()
public boolean isRunning()
public void start()
public void stop()
public void resetTimer()
public String toString()
toString
in class Object
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |