I need to apply a formula that uses the time interval between excitations of a microphone. I know how to bring the millis() function in (total time), but I dont know how to save individual times so I can compute the interval between them. Suggestions would be appreciated.
did you ever used a stopwatch? calculate the delta in the moment where the events end. and make the variables global. now they exist only in surrounding {}
the equivalent of a stopwatch that catches the time of each trigger is exactly what I need to code in the program. I expect the microphone to be triggered about 3000 times every time i use it (around once per second but it will vary every time)