I imagine it might be hard to find a time when pilots can eat, but when they do, what do they eat?
Yes, commercial pilots eat the same meals that the passengers do. They may have extra snacks and such that the passengers don't, but that's it.
It's actually quite easy to find time to eat, since the majority of the actual control manipulation is handled by the autopilot. If the autopilot isn't available for whatever reason, one person can fly while the other eats.
Fun fact: Most airlines have a policy that the pilots must eat different meals, so that if there was a bad batch of chicken that gave everyone who ate it food poisoning, then the pilot that had the fish can still fly and land the plane.