Measuring the energy usage

I am still knew to the whole energy monitor but may I ask how I can calculate the total energy used. Is there like a function call...