active power measurement