Was a pendulum one of the torture tools during the middle ages?

No, it was just from a story by Edgar Allan Poe called The Pit and the Pendulum written in 1842