I spent a while learning about sewing machine timing and repair a couple of years ago after buying a very nice vintage Elna at a thrift store for $20. Turns out that the way most of the timing is set is based on the height of the needle when the shuttle mechanism underneath is in a particular place. You loosen the set screw on the collar that connects the upper and lower mechanisms, set the needle to the height of a gauge block from the manufacturer and then rotate the lower mechanism until something lines up, then tighten the set screw. Those blocks are almost all long gone for anything that's still mechanical, and the modern machines are all electronically timed with stepper motors in the top and bottom. Fascinating stuff if you dig into it.