In mac, there is a similar tool and it provides a threshold option to accurately measure two borders. e.g. In below screenshot top is calculated from above input rather than from within the current input 