When you switch-on the time stamping in the Serial monitor, you get printouts like this:
13:45:23.848 -> getData:
13:45:24.553 -> getData:
This looks like the 2nd getData command came ~700ms after the first, while in reality it came several minutes later!
The problem is that the time stamp seems to get printed out with a \n character. This thus becomes a meaningless value when the next print comes much later.
Instead, the timestamp should only be printed at the time-point a new print has begun!
How do you define " the time-point a new print has begun!"? On my system it prints when a new line starts to print, it could simply be a space which you did not see. Look at your print statement and see if you have a loose space at the end of the string.
The '1' is printed at computer time: 10:01:32, the time stamp on the 3rd line, not the '10:0:32.440' on the 2nd line! And you see that the last line in the monitor already has a time stamp, although nothing was printed!
The above was obtained with the Arduino IDE 2.0 Beta7. After starting Arduino IDE 1.8.13, and looking at the running dvice, I get this: