Single phase energy meter