We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1b598e commit 63a665fCopy full SHA for 63a665f
Firmware/RTK_Surveyor/RTK_Surveyor.ino
@@ -399,6 +399,8 @@ bool newAPSettings = false; //Goes true when new setting is received via AP conf
399
400
unsigned int binBytesSent = 0; //Tracks firmware bytes sent over WiFi OTA update via AP config.
401
int binBytesLastUpdate = 0; //Allows websocket notification to be sent every 100k bytes
402
+
403
+unsigned long startTime = 0; //Used for checking longest running functions
404
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
405
406
void setup()
@@ -635,4 +637,6 @@ void updateRTC()
635
637
}
636
638
639
void printElapsedTime(const char* title)
640
+{
641
+ Serial.printf("%s: %d\n\r", title, millis() - startTime);
642
0 commit comments