For measuring RMS power, there's a chip (from Analog Devices, I think) that does power to frequency conversion. It does analog multiplication of the voltage and current samples, giving instantaneous power, then drives a V to F converter. For energy (joules or watt seconds), just count the pulses. Harold