Vernier height gauge works on the principle similar to