Etymology
Today it means: In a torturous fashion, or as if in torture Full definition →
From torturous + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.