Dc energy meter working principle