The time taken by a particle performing simple harmonic motion (SHM) to pass from point A to B, where its velocities are the same, is 2s. After another 2s, it returns to point B. What is the time period of oscillation?