Hold a ruler flat against the screen with 0 on the left edge of the bar. Drag the slider (or use ← → for fine steps) until the right edge of the bar lands exactly on the reference distance. The small ticks are millimetres, tall ticks are centimetres.