22.07.2013 Views

PDF de la clase 34

PDF de la clase 34

PDF de la clase 34

SHOW MORE
SHOW LESS

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!