Re: using millis() for timing

wiifm:
I read the sticky at the top of this forum regarding millis();
Thanks MorganS. Notwithstanding the flaws in the function I originally posted, sometimes I might call a function out of the regular timing sequence (especially updating displays etc). The timing logic within the function would prevent this from happening.

Well, display code can be different. My displays usually look like...

  if(somethingChangedForTheDisplay) updateDisplay();

Some of my displays go right down to the individual characters, so that it doesn't need to redraw "12" when the displayed value changes from "123" to "124".