

Around (4 to 6) * 10^(26 to 27) J total
1 gigawatt is 10^9 J/s (so around 130 billion years to reach the above.) For a terawatt that’s 130 million years. For a petawatt 130,000 years. For an exawatt about 130 years…
Note: the sun bathes Earth with around 170,000 TW (0.17 exawatts) of energy. That’s about 700-800 years if you could make the oceans sink all that sun energy. Again, this isn’t the total output of the Sun but just what impacts Earth directly.


Fun.