The subtraction method of calculating elapsed time means you don't need to care if it overflows or not.

Nick, bravo to you and Coding Badly. I made one last test, and now I can get on with the rest ofmy life. I took Morris' original example, start of this thread, and tried both sets of lines below,along with starting the clock near the wraparound point.