I assume it is this: http://terraria.gamepedia.com/Mechanical_Ruler You have to buy it from the Mechanic.
You have to buy it from the Mechanic.