Electronic energy consumption monitor