在c#4.0中是否有任何计时器事件的替代? [英] is there any substitue of timer event in c#4.0?

查看:57
本文介绍了在c#4.0中是否有任何计时器事件的替代?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hie,

i不想使用system.timers.timer来记录特定事件,在新版本的c#中是否有任何替代/替代计时器?



提前感谢

hie,
i don''t wanna use system.timers.timer to note the particular event,is there any substitute/alternative of timers in new version of c#?

thanks in advance

推荐答案

当然:线程化。这一切都取决于你想要达到的目标。在许多情况下,线程比定时器好得多。至于计时器,.NET FCL上至少有四种不同的计时器类。



-SA
Of course: threading. It all depends on what you are trying to achieve. In many cases, threading is much better than timers. As to the timers, there are at least four different timer classes on .NET FCL.

—SA

这篇关于在c#4.0中是否有任何计时器事件的替代?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆