We generally tend to underestimate sizes and masses of celestial bodies. A little giveaway is that for all non-astronomical means and purposes we consider the earth's mass infinite without any measurable error.3
Let's make an estimation. Let's assume that the average specific heat of the earth's matter is that of silica (SO2), ca. 0.7 J/g. This leads to the following results:1
Specific heat of silica (J/(kg*K)) 7.00E+2 Earth's mass (kg) 5.97E+24(2) Earth's energy/K, assuming it's all silica 4.18E+27 World primary energy supply 2015 (Mtoe) 1.36E+4 J/Mtoe 4.19E+16 World primary energy supply 2015 (J) 5,60E+20 -------------------------------------------------------- Years of world energy supply from 1K 7.31E+06 ========================================================
That's actually less than I thought, by a factor of 100 or 1000 or so, but still ... long.
1 The original primary energy consumption number is from the IAEA. Mtoe stands for mega ton oil equivalent, roughly 4,187e+10 J.
(2) Give or take 10^20
3 Obligatory (but somewhat depressing) xkcd.