Algorithm and criteria for the measurement of energy consumption in a CNC milling machine: a proposal | IEEE Conference Publication | IEEE Xplore