Make sure your calculations all use unsigned long variables (32bit, 0 to FFFFFFFF)and the math is always currentmilis - previous millis.Then even at rollover, if currentmillis = 0x00001000, and older (previous) is 0xFFFFFFF8 for instance, a correct result is returned:0x00001000 - 0xFFFFFFF8 = 0x00001008
Probably Jack - getting folks to read it before asking is the tricky bit.Often folks don't even know what it is they should be looking for.
Quote from: CrossRoads on Apr 13, 2012, 09:31 pmProbably Jack - getting folks to read it before asking is the tricky bit.Often folks don't even know what it is they should be looking for.It would at least make it easier for the people replying to find the link they need to point at
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16