Not a proper tool for the job, but an old caliper can do the trick.
It is adjustable over a wide range, and has small enough points to fit almost anything.
But only use an old pair, that has experienced enough knocks to have lost its value as a measuring tool.