哪个计时器? [英] Which Timer?
问题描述
我很高兴看到在VB 2005中我不再需要创建一个表单,如果我想要像我在VB6中那样使用
计时器。我注意到,似乎有一个Timer
组件以及两个不同的计时器类从(System.Threading& System.Timers)中选择
。 br />
如何确定哪种最适合任何特定的
应用程序?
我目前的应用程序是一种实时数据采集&控制
系统,我需要每100ms左右轮询一次外部设备。
TIA
Phil。
>
I''m glad to see that in VB 2005 I no longer have to create a form if I want
a timer like I did in VB6. I notice though, that there seems to be a Timer
component as well as two different timer classes to choose
from(System.Threading & System.Timers).
How does one decide which is most appropriate for any particular
application?
My current application is a sort of real-time data acquisition & control
system, and I need to poll an external device every 100ms or so.
TIA
Phil.
推荐答案
" Phil" < N / Aschrieb
"Phil" <N/Aschrieb
我很高兴看到在VB 2005中我不再需要创建表格如果
我想要像我在VB6中那样的计时器。我注意到,似乎
是一个Timer组件以及两个不同的计时器类来从
中选择
来自(System.Threading) & System.Timers)。
如何确定哪个最适合任何特定的
申请?
我当前的申请是一种排序实时数据采集&
控制系统,我需要每隔100ms轮询一次外部设备或
所以。
TIA
菲尔。
I''m glad to see that in VB 2005 I no longer have to create a form if
I want a timer like I did in VB6. I notice though, that there seems
to be a Timer component as well as two different timer classes to
choose
from(System.Threading & System.Timers).
How does one decide which is most appropriate for any particular
application?
My current application is a sort of real-time data acquisition &
control system, and I need to poll an external device every 100ms or
so.
TIA
Phil.
http ://msdn2.microsoft.com/en-us/lib...e6(VS.80).aspx
http://msdn.microsoft.com/msdnmag/is...T/default.aspx
Armin
http://msdn2.microsoft.com/en-us/lib...e6(VS.80).aspx
http://msdn.microsoft.com/msdnmag/is...T/default.aspx
Armin
>
>
http://msdn2.microsoft.com/en-us/lib...e6(VS.80).aspx
http://msdn.microsoft.com/msdnmag/is...T/default.aspx
干杯,
菲尔。
Cheers,
Phil.
嗨菲尔,
由于您当前的应用程序是实时数据采集和控制
系统,您应该使用基于服务器的计时器,即System.Timers.Timer。
希望这会有所帮助。
如果您有任何疑问,请随时告诉我。
此致,
Linda Liu
Microsoft在线社区支持
================== ================================
通过电子邮件收到我的帖子通知?请参阅
http://msdn.microsoft .com / subscripti ... ult.aspx#notif
ications。
注意:MSDN托管新闻组支持服务是针对非紧急问题
如果社区或微软支持人员在1个工作日内做出初步回复是可以接受的。请注意,每个跟随
的响应可能需要大约2个工作日作为支持
专业人士与您合作可能需要进一步调查才能达到
最有效的分辨率。该产品不适用于需要紧急,实时或基于电话的交互或复杂的b $ b项目分析和转储分析问题的情况。这种性质的问题最好通过联系
Microsoft客户支持服务(CSS)处理
href =http://msdn.microsoft.com/subscriptions/support/default.aspx\"target =_ blank> http://msdn.microsoft.com/subscripti...t/default.aspx 。
======================================== ==========
此帖子按原样提供。没有保证,也没有授予任何权利。
Hi Phil,
Since that your current application is a real-time data acquisition&control
system, you should use the server-based timer, i.e. System.Timers.Timer.
Hope this helps.
If you have any question, please feel free to let me know.
Sincerely,
Linda Liu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
这篇关于哪个计时器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!