Discharge measurement