For what it's worth, my mum had to literally limit my coding time so I didn't completely flunk out of high school due to inattention. I did have to repeat a year.
These days my girlfriend limits my coding time because apparently adults are supposed to, like, be adults. I'm often late for work, where my main job is coding, because I'm solving a fun coding puzzle of my own in the morning and lose track of time.
Yes, I'm weird. My point is that if you enjoy something, you'll find time to do it. If you don't, you won't. and that's okay