Displacement in time
Solving $a = -\omega^2 x$ gives a displacement that varies sinusoidally with time:
\[x(t) = A\cos(\omega t + \phi)\]
(1)
$A$ is the amplitude, the furthest the object gets from the middle. $\phi$ is the phase, which just says where in the cycle the clock was started.