DispatcherTimer
-
When does the next tick start. Watching how things seem to preform it seems like: Tick Execute Tick routine, pause tick timer Tick routine ends, restart tick timer It seems like the tick interval is between the tick routines. It is OK, I just want to make sure I understand it correctly.
So many years of programming I have forgotten more languages than I know.
-
When does the next tick start. Watching how things seem to preform it seems like: Tick Execute Tick routine, pause tick timer Tick routine ends, restart tick timer It seems like the tick interval is between the tick routines. It is OK, I just want to make sure I understand it correctly.
So many years of programming I have forgotten more languages than I know.
You have the sequence wrong! Tick Stop the timer process the tick routine restart the timer. If your process is longer than the timer interval it clags up the system.
Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP
-
You have the sequence wrong! Tick Stop the timer process the tick routine restart the timer. If your process is longer than the timer interval it clags up the system.
Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP
That's what I meant. Maybe I did not state it well. "it clags up the system" is what I thought at first but it seems to follow the above sequence fairly well. As I change the tick interval it seems to be offset by a constant. My tick routine has to read some USB analog inputs. It is slow but consistent. I cannot find anything on the web to explain clags.
So many years of programming I have forgotten more languages than I know.
-
That's what I meant. Maybe I did not state it well. "it clags up the system" is what I thought at first but it seems to follow the above sequence fairly well. As I change the tick interval it seems to be offset by a constant. My tick routine has to read some USB analog inputs. It is slow but consistent. I cannot find anything on the web to explain clags.
So many years of programming I have forgotten more languages than I know.
Sorry - slang You end up with queued processes that are re-launched before the last one is completed therefore you need to insure that only 1 process is launched at a time.
Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP
-
Sorry - slang You end up with queued processes that are re-launched before the last one is completed therefore you need to insure that only 1 process is launched at a time.
Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP
I like the slang better.
So many years of programming I have forgotten more languages than I know.
-
When does the next tick start. Watching how things seem to preform it seems like: Tick Execute Tick routine, pause tick timer Tick routine ends, restart tick timer It seems like the tick interval is between the tick routines. It is OK, I just want to make sure I understand it correctly.
So many years of programming I have forgotten more languages than I know.
You only need to pause, if the tick event takes longer to execute than the interval if you want a "proper" timer. And if you're re-entrant, you don't need to pause either. Pausing implies your interval is "off".
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food