If the sun produced its energy by burning gasoline (a typical "chemical" or "atomic" or "electrical" burning process), it would consume about 1022 grams/second, and therefore could last only about 10, 000 to 100, 000 years.