We've all had that experience where we get so wrapped up in something that minutes turn into hours and hours turn into "Holy crap, I forgot to have dinner."
Supposedly, in his prime, Isaac Newton's mother had to regularly come in and remind him to eat because he would spend entire days so absorbed in his work that he would forget.
I used to be like that with video games. This probably wasn't a good thing. In fact, for many years it was kind of a problem. I would sit and play video games instead of doing more important things like studying for an exam, or showering regularly, or speaking to other humans face-to-face.
It wasn't until I gave up the games that I realized my passion wasn't for the games themselves (although I do love them). My passion is for improvement, being good at something and then trying to get better. The games themselves — the graphics, the stories — they were cool, but I can easily live without them. It's the competition with others and with myself that I thrive on.
And when I applied that obsessiveness for self-improvement and competition to an internet business and to my writing, well, things took off in a big way.
Maybe for you, it's something else. Maybe it's organizing things efficiently, or getting lost in a fantasy world, or teaching somebody something, or solving technical problems. Whatever it is, don't just look at the activities that keep you up all night, but look at the cognitive principles behind those activities that enthrall you. Because they can easily be applied elsewhere.