New energy measurements
Energy measurements in code