function formatTime(time) {
    let seconds = Math.floor(time / 1000);
    let hours = Math.floor(seconds / 3600);
    let minutes = Math.floor((seconds - hours * 3600) / 60);
    seconds = (seconds - minutes * 60 - hours * 3600);

    let formattedHours = hours < 10 ? "0" + hours : hours;
    let formattedMinutes = minutes < 10 ? "0" + minutes : minutes;
    let formattedSeconds = seconds < 10 ? "0" + seconds : seconds;
    return `${formattedHours}:${formattedMinutes}:${formattedSeconds}`;
}
// formats the time in milliseconds to hh:mm:ss format
formats the time in milliseconds to hh:mm:ss format
formats the time in milliseconds to hh : mm : ss format
function formatTime(time) {
    let seconds = Math.floor(time / 1000);
    let hours = Math.floor(seconds / 3600);
    let minutes = Math.floor((seconds - hours * 3600) / 60);
    seconds = (seconds - minutes * 60 - hours * 3600);
    let formattedHours = hours < 10 ? "0" + hours : hours;
    let formattedMinutes = minutes < 10 ? "0" + minutes : minutes;
    let formattedSeconds = seconds < 10 ? "0" + seconds : seconds;
    return `${formattedHours}:${formattedMinutes}:${formattedSeconds}`;
}
function formatTime ( time ) { let seconds = Math . floor ( time / 1000 ) ; let hours = Math . floor ( seconds / 3600 ) ; let minutes = Math . floor ( ( seconds - hours * 3600 ) / 60 ) ; seconds = ( seconds - minutes * 60 - hours * 3600 ) ; let formattedHours = hours < 10 ? "0" + hours : hours ; let formattedMinutes = minutes < 10 ? "0" + minutes : minutes ; let formattedSeconds = seconds < 10 ? "0" + seconds : seconds ; return ` ${ formattedHours } ${ formattedMinutes } ${ formattedSeconds } ` ; }
formats the time in milliseconds to hh:mm:ss format
formats the time in milliseconds to hh : mm : ss format