Introduction - If you have any usage issues, please Google them yourself
Code, there are very complete notes and explanations Including the generalized cross-correlation function GCC time delay estimation, There are cycle detection, periodic testing.