It is called a depthing tool. It's used in clockmaking, to determine the exact separation of shafts. You mount two gears in the middle of the thing, and adjust the separation until they mesh smoothly. You then use the bits sticking out the bottom to mark where to drill holes for the gear shafts.