I have a 10 and 20 question game. I need to count how much time is passed when a user finishes the game.
Timer T=new Timer(); T.scheduleAtFixedRate(new Timer
Even better!
long tStart = System.nanoTime(); long tEnd = System.nanoTime(); long tRes = tEnd - tStart; // time in nanoseconds
Read the documentation about nanoTime()!