Real-time delay between signals
I can't comment because I'm a new user... have a look to these questions:

Estimating the time offset (delay) between two audio signals in real-time

Generalized Cross Correlation

Time delay estimation of oscilloscope signals using cross correlation