$\theta=\pi\sin[\pi\sec^{-1}\text{t}]$
$\therefore\omega=\pi\sec^{-1}$ (comparing with the equation of SHM)
$\Rightarrow\frac{2\pi}{\text{T}}=\pi$
$\Rightarrow\text{T}=2\sec.$
We know that $\text{T}=2\pi\sqrt{\frac{\ell}{\text{g}}}$$\Rightarrow2=2\sqrt{\frac{\ell}{\text{g}}}$
$\Rightarrow1=\sqrt{\frac{\ell}{\text{g}}}$
$\Rightarrow\ell=1\text{m}.$
$\therefore$ Length of the pendulum is 1m.
