Real-time monitoring and measurement of energy characteristics in sustainable machining of titanium alloys