long start = System.getCurrentTimeMillis();

while ( running == true ) { // do nothing }

long end = System.currentTimeMillis();

long time = end - start;

oder mit System.nanoTime()

...zur Antwort
Weitere Inhalte können nur Nutzer sehen, die bei uns eingeloggt sind.