I have issues with focusing and prioritizing work.
What helped me is getting a work with absolutely floating work time. For example today I went to work office at 19:30 and I'm going to leave it at 7:00 or something like that. It doesn't matter. What matters is: I work prolonged hours (because I still procrastinate, but I've found out that I start to focus on work after 4-5 hours or something like that. And I can sleep as much as I need, without any alarm clock or calls. I usually sleep 8-9 hours, my whole day is something like 25-27 hours, so it's slowly rotating.
With these weird conditions I'm starting to unleashing my potential and it makes me feel so much better than before. When I'll get to work "late" to 11:00 in a sleepy state, will procrastinate until 18:30, when office is closed I'm going home without completing good work, then work overtime to finish sprint, getting burned out and this cycle repeats again.
I don't think that my current life style is sustainable and I plan to adjust it to a "normal" style slowly, but it's important to feel that I don't just slack at work and I actually do enough work to warrant my salary. This makes my soul happy and then I can move on with other things. Because when I feel uneasy, I can't really proceed with anything.
I don't trust psychiatrists, but it's just me. I prefer to find issues and ways to solve those issues. I tried to visit psychologist, but I felt that it's absolute loss of time and money.