View Single Post
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#111
Originally Posted by jolouis View Post
then once the update has completed the timer is recalculated (that way the wait is accurately calculated again AFTER all potentially time-consuming code has been run).
I agree. Get the next time stamp after the update code and right before the wait/sleep/timer/etc call. In my example I would thus flip the first two statements of my while loop. Good call.
__________________
N9: Go white or go home