Showing a formatted elapsed time
<p>On my upload file page I want to show an elapsed time (how long the user has been uploading the file for) in this format: <code>00:26</code>, which would be 26 seconds. <code>17:34</code> would be 17 minutes 34 seconds, etc.</p>

<p>How could I do this? I have an event that gets called when the upload starts so I can set a Date variable from there, and I also have a function that gets called periodically for me to update the elapsed time.</p>

<p>Thanks.</p>
