WaitForReadyTimeOut是否考虑输入超时值? [英] Does WaitForReadyTimeOut consider the input timeout value?

查看:209
本文介绍了WaitForReadyTimeOut是否考虑输入超时值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用下面的代码。我有一个变得忙碌的过程。当它忙时我正在检查WaitForReadyTimeOut播放设置是否尊重它的值。我发现它没有按预期工作。

I used below code. I am having a process which becomes busy. When it is busy i am checking whether WaitForReadyTimeOut playback setting respects its value. I see it is not working as expected.

代码:

            Playback.PlaybackSettings.WaitForReadyTimeout = 300000;
 
            Stopwatch myWatch = new Stopwatch();
            myWatch.Start();
 
            bool finalValue = abc.WaitForControlReady();
 
            myWatch.Stop();
 
            MessageBox.Show(myWatch.ElapsedMilliseconds.ToString());

如果进程仍然繁忙且超过最大超时时间,我期望它返回虚假。我的问题是,为什么它会等待WaitForReadyTimeOut指定的内容?

If the process is still busy and if it exceeds max time out, i expect it to return false. My question is, why does it wait for than what is specified to WaitForReadyTimeOut?

以下是我给WaitForReaduTimeOut的时间以及它出来的时间:

Following are the timings that i gave to WaitForReaduTimeOut and timings it took to come out:

125,000 - 203,696(以毫秒为单位)

125,000 - 203,696 (in milliseconds)

100,000 - 201,129

100,000 - 201,129

75,000 - 150,000

75,000 - 150,000

我很想知道为什么会有超时差异。为什么它不尊重超时值。

I am interested to know why there is difference in timeouts. Why does it not respect the timeout value.

非常感谢任何信息!

谢谢

-Babu

推荐答案

<你好Babu,

我试图让熟悉这个话题的人参与进一步研究这个问题。可能会有一些时间延迟。感谢您的耐心等待。

I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.


这篇关于WaitForReadyTimeOut是否考虑输入超时值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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