Message from JavaScript discussions

June 2018

— Anyone know how to do an easy chronometer without using setinterval and clearinterval

— 

I already do one with these functions and works fine in pc but in android web browser is very slow and seconds some times seems minutes

— I need to show in real time the seconds minutes and hours running

— Hmm.. maybe setTimeout with small delay and timestamp checking. timestamp from performance.now()

— Well.. no. RAF and new Date(), i belive is better for this case.

— Uhhh

— I will try it, thanks in advance.

— RequestAnimationFrame?

— Hi

— Hello

— Hello

— What do you mean keyword "costructor" and "private" in JS??