Better go back and read the API again. That Date constructor wants time in milliseconds since the beginning of the UNIX era - Jan 1, 1970. It has nothing to do with elapsed time.
You would be better off doing the divisions and modulos to convert your elapsed time to hours, minutes and seconds and then formatting the
string.
Bill