本文介绍了需要使用c#准确替代Thread.sleep(时间)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
HI
我正在开发工程应用程序,我们需要多次执行thread.sleep()函数。但是由于睡眠间隔不准确,我们需要一个可以模仿thread.sleep()功能的替代方案。
我们的代码中有多媒体计时器所以请知道我是否可以使用它在某种程度上为此目的。
任何帮助将不胜感激。
解决方案
HI
I am working on Engineering application where we need thread.sleep() function many times. But since sleep interval is not accurate we need an alternative which can mimick functionality of thread.sleep() .
we have multimedia timer in our code so Please lemme know if I can use that in someway for this purpose.
Any Help would be greatly appreciated.
解决方案
这篇关于需要使用c#准确替代Thread.sleep(时间)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!