In certain embodiments, a system (10) comprises a laser source (20), one or more optical elements (24), a monitoring device (28), and a control computer (30). The laser source (20) emits one or more laser pulses. The optical elements (24) change a pulse length of the laser pulses, and the monitoring device (28) measures the pulse length of the laser pulses to detect the change in the pulse length. The control computer (30) receives the measured pulse length from the monitoring device (28), determines one or more laser parameters that compensate for the change in the pulse length, and controls the laser source (20) according to the laser parameters.