Distance of a drawn line or loop

Hello, is there anyway to find the distance (linear length) of a drawn line?  A straight line isn't hard, just use the start and end points and calculate, but a free-hand or otherwise curved line is different.  How can I find the linear length of a free-hand drawn line?  

Thanks,

jj