240v AC Voltage measurement using Voltage divider
You can't accurately measure energy flow without measuring the instantaneous voltage and instantaneous current with many samples per cycle. 

I suggest you take a look at reference designs for energy meters. If it's an industrial situation you may have to do it for 3-phase power. The safest and most expensive method is via a potential transformer.