Multi-function energy meter