One end of a spring of force constant k is fixed to a vertical wall and the other to a block of mass m resting on a smooth horizontal surface. There is another wall at a distance x0 from the block. The spring is then compressed by 2x0 and released. The time taken to strike the wall is