How do I find out the elapsed time from the serial Plotter graph? I am plotting sensor values from the Arduino Nano and would like to know the time scale on the x-axis in order to calculate settling time of oscillations. I have tried the suggestions here but they do not seem to work in my case.
For example, in the graph below I would like to find out the time it took for the sensors to record their first movement at around point 190.
I am doing the following to print two values:
//printData1(); Serial.print(roll_err); Serial.print(" "); Serial.println(pitch_err); Serial.print(" ");
Baud Rate: 9600 Loop Time: 40ms
If my loop time is 40ms then I was thinking that the total time would be 180*40ms. Is this reasoning correct?
Is there a better way to read the time elapsed in the serial plotter?
EDIT: Trying to get a 10ms 'grid'
As per the suggestion in the answer below I have tried running something similar to the following but the loop does not run at a constant time.