This is probably a quickie - while writing some code I realized that in one of my calls to elapsedmillis, it might be the case that it gets called once and doesn’t get reset for extended periods of time. ie:
(some very pseudo code)
elapsedMillis myTimer;
int thisTimer = 2000;
bool thing = false;
if(thing == false)
myTimer = 0;
thing = true;
obviously that logic is crap but my timer starts running and for whatever reason, ‘thing’ never gets set to false again so the timer just keeps running. Am I eating up resources leaving it running like that and/or is there a ‘stop’? I don’t see something obvious in elapsedMillis.h (as installed by the particle visual studio library) that would allow one to stop the timer aside from some blocking logic (which defeats the purpose)
Just curious if thats a thing/if I should care about it or if just using millis() would be better in that case? (I’m betting it doesn’t matter or there probably would be a ‘stop’ function, but figured it was worth an ask)