Yeah definitely half a period, since you pass by the equilibrium point after half a period. Since spring motion is sinusoidal, it'll start from rest, into maximum amplitude, then passes by the equilibrium point, into the compressed form, back out into the equilibrium point in one period...