The Fourier transform takes a time verses amplitude pattern

and calculates the corresponding frequency verses amplitude pattern.

I think what you are after is a closely related process called <

cross correlation>.

This allows you to distinguish the phase difference of two (or more) signals of the same frequency.

The maths is a bit hairy...