Integrated flow measurement