I have commands that use the DELAY function, i want to verify if they work.
How to track the time from a DELAY start function, or other event
You can use millis() function to save time before and after delay, and then calculate the difference
if that was not clear enough, what @IoT_hobbyist is suggesting is
unsigned long startTime = millis();
// ... some code
Serial.println(millis() - startTime); // nb of milliseconds spent in "some code"
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.