It's close enough to how it's measured. China's terawatt of solar power capacity isn't producing 9000 terawatt hours in a year. Their total electricity use is 9000 terawatt hours.