wait() delay with a stopwatch?
I'm trying to make a stopwatch, but the timer is out of sync with any other stopwatch. Using some printing, I have discerned that there is a single millisecond delay about every other tick. It is off sync by one second about every minute and a half. As you can tell, 1000 milliseconds do not happen with a half a millisecond delay over 90 seconds. So where did the extra 955 milliseconds come from?
Code:
5 | textLabel.Text = alive.. " Seconds" |
There was also a much larger delay when ticking 10 times a second, up to a second of delay per two seconds. Also then, every other go took 30-40 milliseconds. The other ones took one millisecond, so once again, where did the extra milliseconds come from?