Results 1 to 3 of 3
Sep 12, 2006, 07:45 #1
- Join Date
- Mar 2006
- 0 Post(s)
- 0 Thread(s)
SetTimeout - need to check the timer's current position
I have a situation with setTimeout where I need to check the number of milliseconds remaining so that the program logic can decide whether to follow through with the operation or delay it a few more seconds.
Pretty much this is used to reduce lag on the user's end so that if they are in the middle of typing it won't execute the timed function unless they have stopped typing for a few seconds, making it safe to perform the operation (in the background) without interfering with their user experience.
In any event, there doesn't seem to be a native way to check the current progress or remaining millisecond count on a setTimeout. That is, unless I just haven't been able to find it.