How, specifically, does an electric meter measure wattage?

Hi

There's quite a discussion on the theory and mathematics behind AC metering over at OpenEnergyMonitor.org. They've also wrapped up the theory into an Arduino library for ease of use.

Cheers ! Geoff