To all programmers/developers/researchers

What do you do when your program is compiling? Whenever I am running a code, it takes some time to run, I lose my patience and I start scrolling my phone. I have seen people who don't use their phones at all. At the moment, I'm running some big files, it takes forever to run. How do you efficiently utilize your time in that period? I start overthinking and waste my time instead of doing something useful.