I was prescribed clonazepam for twitching legs (may be slightly different from restless legs) which woke me up in the night. This is in the benzodiazepam family - but different from diazepam. I think diazepam is valium, which I was prescribed twenty years ago as a muscle relaxant when I slipped a disc. I absolutely hated it because of the brain fog it gave me. I couldn’t concentrate enough to read a page of a book. I stopped taking it pretty quickly.
I’ve never had brain fog problems with clonazepam and it has been very effective at stopping my leg twiching. I think it made me sleep a lot though (about 10 or 11 out of 24 hours at worst). I recently stopped taking it (trying the Wahls diet, leg twitching in the evening stopped, blah, blah, blah) and I got terrible ‘rebound insomnia’, awake for hours in the night the first two nights after I stopped taking it and waking every few hours but going back to sleep again the next night. After that my sleep was OK, as long as I didn’t take the full dose of my Fampyra. A couple of days later, the leg twiching started again and I went back on the clonazepam. I’ve worked out that if I take the Fampyra and the clonazepam I generally sleep for about 7.5 hours and don’t sleep much in the day. Which is OK for me - but this is a bit of a warning about benzodiazepams for restless or twiching legs. It feels like a long and boring story so sorry for that.