Basically, surveyors have tools to measure elevation very precisely (theodolites, total stations, and special GPS receivers).
If I had to do an optical measurement, I'd take two readings, from A to B and back from B to A, and since they err in opposite directions, I'd average them to cancel the...