Uses the equations of motion for a pendulum. Don't stare at it for too long.....you are feeling sleeeeeepy....... ;-)