First of all,If I open this topic wrong place sorry about this.
I am doing a final thesis about taking a clap signal from microphones using some triangulation technic to detect the source position. In my project I have precision problem.I researched it and I found that I have to increase sample rate with some thread .However I couldn't find the correct answer. I have to reach at least 1Mhz sampling rate.
To detect the time difference I am using attach interrupt function. Could you help me about How can I increase the sample rate.
Or Could you give me another solution to get time difference instead of attachinterrupt function. Maybe I can use analog part ?
Shortly,Could give me your exprience please,
It's the first time I've seen your code, so I can't have told you it's incorrect.
It doesn't look faulty, per se, but it doesn't do anything useful either.