Characteristics of pulse width for an enhanced second harmonic generation