EGG is a non-invasive way to measure gastric function, where electrodes placed on the skin of the abdomen record the electrical activity of the stomach.