A pinch rod is a good thing to have for accurately measuring heights or openings.
I made this a long time ago. It's a bit clunky but effective.





This one is 2m long, so I only have to add the length of protrusion for a bang on measurement with barely any maths.

Doing the best I can with what I've got