involving measuring phase difference of two signals or pulse trains