The procedure involves using a metabolic cart or an indirect calorimeter, which measures gas exchange through a face mask or a ventilator circuit. The process typically takes about 30 minutes, during which the patient should be in a resting state to ensure accurate measurements. Nurses are responsible for preparing the patient, ensuring proper equipment setup, and monitoring the patient throughout the procedure to ensure reliable data collection.