The equation of motion of a particle is d2ydt2+Ky=0 , where K is positive constant. The time period of the motion is given by
2πK
On comparing with standard equation d2ydt2+ω2y=0 we get ω2=K⇒ω=2πT=K⇒T=2πK.