All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.lang.Thread | +----gjt.Stopwatch
Stopwatch starts running when it is constructed, and may be reset by the reset() method. getHour(), getMinute(), getSecond(), and getMillisecond() are used to get the elapsed time since construction, or since the last reset.
toString() returns the elapsed time in the form of HH:MM:SS:mm, where HH == hours, MM == minutes, SS == seconds and mm == milliseconds.
Each Stopwatch may have a StopwatchClient associated with it. If the StopwatchClient is non-null, the StopwatchClients' tick() method is invoked every 50 milliseconds.
public Stopwatch()
public Stopwatch(StopwatchClient client)
public void update()
public String toString()
public long getHour()
public long getMinute()
public long getSecond()
public long getMillisecond()
public long elapsedTime()
public void reset()
public void run()
All Packages Class Hierarchy This Package Previous Next Index