Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timers: Do they take a lot of resources?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00269294
Message ID:
00269300
Vues:
22
>I'm considering adding a Timer to my application object but I'm a little concerned about how much processor time this might take. It seems to me that Timers must be fairly intensive as the system must be constantly checking to see whether the interval has elapsed. I believe this may be true even with a large interval (I'd be using an interval of 1,200,000 (20 minutes)). So, to be concise, do timers take a lot of CPU time & are they constantly being checked? Thanks in advance for you response.

The only problem I've had with timers is in the debugger, where you need to disable them or they'll drive you nuts :) Otherwise, no problems. Years ago it might have been a bigger deal, but now CPUs are fast enough so it doesn't make much difference in the bigger scheme of things. Windows has lots of "timers" running already, anyway...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform