Measurement of gastric emptying can aid the diagnosis.