How to Get ( during runtime) the lenght of a line drwan between two points

A (x,y) and B (x1,y1).