title: Find time shift of two signals using cross correlation
body: <p>I have two signals which are related to each other and have been captured by two different measurement devices simultaneously.
  Since the two measurements are not time synchronized there is a small time delay between them which I want to calculate. Additionally, I need to know which signal is the leading one.</p>
  
  <p>The following can be assumed:</p>
  
  <ul>
  <li>no or only very less noise present</li>
  <li>speed of the algorithm is not an issue, only accuracy and robustness</li>
  <li>signals are captured with an high sampling rate (>10 kHz) for several seconds</li>
  <li>expected time delay is &lt; 0.5s</li>
  </ul>
  
  <p>I though of using-cross correlation for that purpose.
  Any suggestions how to implement that in Python are very appreciated.</p>
  
  <p><em>Please let me know if I should provide more information in order to find the most suitable algorithmn.</em></p>