A few years ago I was spending 2 hours every morning and 6 - 8 hours each night on my PC, programming. Then out of nowhere, my wife left me...programming suddenly didn't seem so "sexy" anymore.
My time spent on the computer wasn't her main reason for leaving me, but it was a part of it. I spent the next 3-4 months separated from my wife, unable to do much of anything that required thought and concentration. My programming skills had been disabled so I was left with nothing but time to reflect on the past as well as look ahead to the future.
Short story is this...Set your priorities in life. Communicate with your wife and let her know what you want and need from life and then let her share her wants and needs with you. You will both have to make some compromises along the way, but in the end you both should be getting more of what you want/need from the marriage/relationship/life.
My wife and I are now back together again, happier than ever.

I now spend a little less time on the computer and more time paying attention to her. It doesn't take much to make my wife happy these days. On a couple of nights each week I'll watch an hour or so of TV with her. I'll spend at least one hour of that time brushing her hair, rubbing her feet, or maybe giving her a back massage. These are all GREAT ways for me to help convey my love for my wife. One of the smartest things I did during our separation was read a book..."The 5 Love Languages" by Gary Chapman. My wife and I both learned things from reading that book.
Remember this...an ounce of prevention goes a long way.

What goes around comes around.
PB 5.21 LTS (x86) - Windows 8.1