Making Javascript getSeconds more accurate or use different function
<p>I am using the following to calculate time elapsed:</p>

<pre><code>    var start = new Date();
    var end;
    var total;
    end = new Date();
    total = end.getSeconds() - start.getSeconds();
</code></pre>

<p>Now this will produce "total" as for example, 8, 4, 14. How can I modify this to give me 4.23, 8.56, 14.12? Do I need to pass something into getSeconds or use a different function?</p>
