The period function of the generalized Lotka-Volterra centers