LooseChange said..
Usually from the most forward part of the permanent hull structure to the most aft permanent part of the hull, sometimes referred to as LOD (length on deck).
This is how it's done for survey purposes and for fishing vessel licensing. Amateur boats the figures are often rounded out, shorter or longer and in metric or imperial to make the name! Who wants to look at an SS33.5.