A new method for laser-frequency stabilization by controlling the pulse setup time is presented. The frequency-stabilization system monitors the pulse setup time continuously, and controls it by adjusting the cavity length. Laser frequency is stabilized to the center of the gain curve when the setup