A more effecient millisecond conversion method?
<p>I am currently using this method to convert milliseconds to min:sec:1/10sec.
However it does not seem to be efficient at all. Would anyone know of a faster more efficient and optimized way of accomplishing the same.</p>

<pre><code>mills.prototype.formatTime = function(time) {   
    var elapsedTime = (time * 1000);
    //Minutes
    var elapsedM = (elapsedTime/60000)|0;
    var remaining = elapsedTime - (elapsedM * 60000);
    //add a leading zero if it's a single digit number
    if (elapsedM &lt; 10) {
            elapsedM = "0"+elapsedM;
            }   
    //Seconds
    var elapsedS = ((remaining/1000)|0);
    remaining -= (elapsedS*1000);
        ////add leading zero
        if (elapsedS&lt;10) {
            elapsedS = "0"+elapsedS;
        }
    //Hundredths
    var elapsedFractions = ((remaining/10)|0);  
        if (elapsedFractions &lt; 10) {
            elapsedFractions = "0"+elapsedFractions;
        }
    //display results nicely
    var time_data = elapsedM+":"+elapsedS+":"+elapsedFractions;
    //return time_data;
    return[time_data,elapsedM,elapsedS,elapsedFractions]
    };
</code></pre>
