This is more of a learning question, I can solve the problem but it would be good to know how to do it if the system clock was not available, can the signal be sampled corre