Not everything that oscillates with a constant period is a simple harmonic oscillator. An example is the pendulum.