function update_time(){
    let time = time_left(round_end);

    io.sockets.emit('updateTimer', {
      minutes: time.minutes,
      seconds: time.seconds
    });

    if (time.total_time <= 0){clearInterval(timeinterval);
      gameRound = 0;
      restart_round();}
  }
// The time when the round ends in milliseconds
The time when the round ends in milliseconds
The time when the round ends in milliseconds
function update_time(){
    let time = time_left(round_end);
    io.sockets.emit('updateTimer', {
      minutes: time.minutes,
      seconds: time.seconds
    });
    if (time.total_time <= 0){clearInterval(timeinterval);
      gameRound = 0;
      restart_round();}
  }
function update_time ( ) { let time = time_left ( round_end ) ; io . sockets . emit ( 'updateTimer' , { minutes : time . minutes , seconds : time . seconds } ) ; if ( time . total_time <= 0 ) { clearInterval ( timeinterval ) ; gameRound = 0 ; restart_round ( ) ; } }
The time when the round ends in milliseconds
The time when the round ends in milliseconds