And does your supervisor know? One of my friend's supervisor was clearly ASD-like and was very supportive of students having psychiatric/psychological problems. I told him (he was also a professor of mine and we had a group helping with some PhD research) all my problems, when I had appointments with my psychiatrist and such. I imagine it can make a big difference (just have that one experience and it did), but it might not be wise to divulge too much about it to your supervisor, in your case.
But really, at university we're all mad. I'm mad. You're mad.
You must be: otherwise you wouldn't have stayed there.
Bluebicycle is right: it's unhealthy, the madness comes out (took some liberties, arguably).
It's like that one time I became psychotic together with a cat: cats really show you how mad you really are (true story, but it just had a loose association with the aforementioned loose association

).