Speak, I'm trying to make a simple stopwatch and I want to display Minutes, Seconds and Milliseconds, I can display minutes and seconds, but can anyone give me a light on milliseconds?
The method below runs every second, but if I put instead of 1000 put 1 the function will be executed every millisecond, how do I do the conversion calculation?
this.timer = setInterval(() => {
this.minutos = Math.floor(++this.segundosTotais / 60 );
this.segundos = this.segundosTotais - this.minutos * 60;
}, 1000);