Efficient Parallel Training Methods for Spiking Neural Networks with Constant Time Complexity