如何在每10秒后应用时间间隔运行方法? [英] how to apply time interval to run method after every 10 seconds?
本文介绍了如何在每10秒后应用时间间隔运行方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
i每隔10秒就要运行一次方法。
提前谢谢
Hi Everyone,
i have to run method after every 10 seconds .
Thanks in advance
推荐答案
您可以使用计时器 [ ^ ]类定期调用您的方法...
还有一篇非常好的文章,其中包含调度程序,您可以使用:.NET计划定时器 [ ^ ]
You can use the Timer[^] class's to call your method periodically...
There is also a very good article with a scheduler in it you can use: .NET Scheduled Timer[^]
这篇关于如何在每10秒后应用时间间隔运行方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文