0
Talk guys, I’m trying to make a simple chronometer and I want to display Minutes, seconds and milliseconds, I can display minutes and seconds, but someone can give me a light on the milliseconds?
the method below runs every second, but if I put instead of 1000 put 1 the function will run every millisecond, as I do the conversion calculation?
this.timer = setInterval(() => {
this.minutos = Math.floor(++this.segundosTotais / 60 );
this.segundos = this.segundosTotais - this.minutos * 60;
}, 1000);
Convert what?
– Maniero
It would be more interesting if you gave more details than you would like to do. I think you’re a little confused.
– Edgar Muniz Berlinck
I want to make a stopwatch that displays minutes, seconds and milliseconds, well, similar to the native Android stopwatch where the user enters with the minutes you want from now on I will do some color manipulations, record data etc...
– Daniel Tartaglia