`Timer`分量不够准确,是否有别的选择吗? [英] `Timer` Component not accurate enough, is there an alternative?

查看:134
本文介绍了`Timer`分量不够准确,是否有别的选择吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要发生一次0.03125 US $ B $事件B中的定时控件只能去0.031小号

I need an event to occur every 0.03125 s The Timer control can only go to 0.031 s

我怎样才能创建从秒表组件这是比较准确的一个事件?

How can I create an event from the Stopwatch Component which is more accurate?

推荐答案

我发现这一点,它比标准的定时器更准确,可靠!我不能相信。

I found this, it is much more accurate and reliable than the Standard Timer! I cant believe it.

http://www.codeproject.com/Articles/5501/The-Multimedia-Timer-for-the-NET-Framework

引用:
Win32的多媒体计时器服务提供了最大程度的计时精度。他们让你比其他计时器服务更高的分辨率安排时序事件。这可以是在一个多媒体应用程序,其中定时精度是最重要的是有用的。例如,MIDI应用程序需要时序作为细粒度地的事件。

To Quote: The Win32 multimedia timer services provide the greatest degree of timing accuracy. They allow you to schedule timing events at a higher resolution than other timer services. This can be useful in a multimedia application where timing accuracy is of utmost importance. For example, a MIDI application needs timing events that are as finely grained as possible.

不幸的是,在Win32多媒体计时器不是.NET Framework的一部分。然而,通过使用.NET互用的服务,多媒体计时器可以带入在.NET折叠

Unfortunately, the Win32 multimedia timer is not part of the .NET Framework. However, by using the .NET interoperability services, the multimedia timer can be brought into the .NET fold.

这篇关于`Timer`分量不够准确,是否有别的选择吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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