How to count elapsed time
<p>I have this counter below. I have a 10 and 20 questions game. I need to count how much time is passed when a user finish the game.</p>

<pre><code>Timer T=new Timer();
T.scheduleAtFixedRate(new TimerTask() {         
                @Override
                public void run() {
                    runOnUiThread(new Runnable()
                    {

                        public void run()
                        {
                            countdown.setText(""+count);
                            count++;                
                        }
                    });
                }
            }, 1000, 1000);
</code></pre>

<p>I use this to stop the counter:</p>

<pre><code>T.cancel();
</code></pre>

<p>Now I need two things. I need the final value to be a double, for example final score is: 15,49 seconds. And the second thing is of cource a way to count the elapsed time and store it in a variable. Thanks.</p>
