Information générale
Catégorie:
Codage, syntaxe et commandes
>How accurate is the Interval property in a timer control? For example:
>
>I've inherited a Job Scheduler. The data table contains the time the job is supposed to run. The timer interval is 60000 (every minute). It calls a method in a class which looks at the Hour and Minute of DATETIME() and compares it to the Hour and Minute of the job record. If there is a match, it will spawn the job.
>
>What are the chances that the timer could get called at (for example) 11:59:59 and then get called again at 12:01:01 and bypass anything set for 12:00?
>
>In other words, what is the range/likelihood of intervals when the property is set at 60000? Does the workload on the computer have any effect on this?
>
>Thanks........Rich
Hi Rich,
Timer event is a low priority event, it is very likely that it will not be firing at the exact interval specified.
Thanks,
Aleksey.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement