If you use the wait(1) instruction at the end of the while loop, then the count will happen once every frame. I have something similar myself in my 2D game based strictly on 60 fps, but it counts frames, seconds, and minutes. It behaves exactly as I expected it to (although it's slightly a little on the fast side as I can't lock the frame rate exactly on 60 for some reason).