My last astronomy class, granted... about 25 years ago, said it was on average 1 million years before a photon at the core of the Sun made its “random walk” to the surface.
Each second the Sun converts 600 million metric tons of hydrogen into 596 million metric tons of helium, releasing 4 million metric tons of energy.
In the inner Sun the energy is mostly transported by radiation, with a photon being emitted and absorbed many times on the journey to the surface. Nearer the surface the primary energy transport method becomes convection.
But cow farts are causing Global Warming