A stochastic cooling system was designed in the HIRFLCSR project. Based on FokkerPlanck equation, the cooling time of the longitudinal cooling with a notch filter and transverse cooling was calculated. During the calculation, the optimum gain was obtained and applied.