Basic timer around UpdateAI

Basic timer, not perfect, but it damages the frame rate less than it
normally would.