Trying to implement a timer on my recorder, so I can lock my FF and RW functions to it. Also so I can…ummmm…yeah… display the track time. (ie 00.00.00).
I put something together using the Timer class that counts like it should, but the speed’s not accurate.
I’m running startTimer(1)… so the callback should execute every millisecond. So, I thought: “hey, I’ll just increment my millisecond variable everytime it runs the callback and update the seconds and minutes accordingly.” But, what I didn’t think of was how long it would take to execute the code in one callback, so the timer runs slooooooww.
Any suggestions?
thanks in advance,
Elias