PDF de la clase 34
PDF de la clase 34
PDF de la clase 34
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
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