Coherent Anti-Stokes Raman Scattering (CARS) microscopy has attracted lots of attention because of the advantages, such as noninvasive, label-free, chemical specificity, intrinsic three-dimension spatial resolution and so on. However, the temporal overlap of pump and Stokes has not been solved owing to the ultrafast optical pulse used in CARS microscopy. We combine interference spectrum of residual pump in Stokes path and nonlinear Schrodinger equation (NLSE) to realize the temporal overlap of pump pulse and Stokes pulse. At first, based on the interference spectrum of pump pulse and residual pump in Stokes path, the optical delay is defined when optical path difference between pump path and Stokes path is zero. Then the relative optical delay between Stokes pulse and residual pump in PCF can be calculated by NLSE. According to the spectrum interference and NLSE, temporal overlap of pump pulse and Stokes pulse will be realized easily and the imaging speed will be improved in CARS microscopy.