PDF de la clase 34
PDF de la clase 34
PDF de la clase 34
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Clock, stop(), reset()<br />
private void stop() {<br />
clockThread = null;<br />
accumTime +=<br />
}<br />
System.currentTimeMillis() - startTime;<br />
time.repaint();<br />
private void reset() {<br />
}<br />
accumTime = 0L;<br />
startTime = System.currentTimeMillis();<br />
time.repaint();<br />
Clock, run()<br />
public void run() {<br />
Thread myThread = Thread.currentThread();<br />
}<br />
while (clockThread == myThread) {<br />
time.repaint();<br />
try {<br />
}<br />
Thread.sleep(100);<br />
} catch (InterruptedException e){}<br />
39<br />
40<br />
20