One end of a spring of force constant k is fixed to a vertical wall and the other end is connected to a block of mass m resting on a smooth horizontal surface. There is another wall at a distance x0 from the body. The spring is now compressed by 3x0 and released. The time after which the block will strike the other wall is