Put frameTimer on the stack instead

Alternative to #5507