==> Period,\(T = \frac{{2\pi }}{{2\omega }} = \frac{\pi }{\omega }\)
The given function is not satisfying the standard differential equation of \(S.H.M.\)
\(\frac{{{d^2}y}}{{d{x^2}}} = - \,{\omega ^2}y\). Hence it represents periodic motion but not \(S.H.M.\)