Description: 最近写一个程序,其中用到了多媒体定时器,由于在程序中需要加速、减速、暂停、终止等控制方式,所以封装了一个使用多媒体定时回调函数定时方式和相应控制函数的类。不足之处请大家多多指教!-recently wrote a procedure, which uses a multimedia timer, because of the need to expedite the proceedings, deceleration, suspension, termination, etc. Control, Packaging, a one-time use of a callback function methods and timing control function of the corresponding category. Deficiencies Department asked all a great weekend! Platform: |
Size: 15360 |
Author:刘云 |
Hits:
Description: “跑表”类VB 提供的 Timer 控件的精度好象可以达到 1 毫秒,但实际上只能达到几十毫秒。此“跑表”类使用多媒体的定时器而真正提供精确到 1 毫秒的定时(1KB)-"stopwatch" VB Timer control of the accuracy seems to be a millisecond, but only reached tens of milliseconds. This "stopwatch" the use of multimedia timer provide accurate and true to a millisecond timing (1KB) Platform: |
Size: 1024 |
Author:酸奶 |
Hits:
Description: 本程序使用WinIO库操作并口,控制步进电机。由于settimer时间精度较低,故使用多媒体定时器计时,时间精度可达1ms-WinIO use of this procedure for parallel operation, stepper motor control. Due to the lower accuracy settimer time that the use of multimedia timer time, time accuracy 1ms Platform: |
Size: 3664896 |
Author:赵文闯 |
Hits:
Description: 这是一个多媒体定时器的程序,是学习多媒体定时器的号助手-This is a multimedia timer procedure is to study its multi-media timer assistant Platform: |
Size: 68608 |
Author:江风 |
Hits:
Description: 如果定时器的精度影响到你的程序质量,可以下载此源码,多媒体定时器的精度可以达到1ms。定时期间,不会阻塞程序。-If the timer accuracy affects the quality of your program, you can download the source code, multimedia timer accuracy can achieve 1ms. From time to time during the procedure will not cause blockage. Platform: |
Size: 31744 |
Author:尹哲 |
Hits:
Description: 针对采样定时问题,写了一个小程序,主要功能是测试在给定频率下,多媒体定时和多线程定时的时间输出-Sampling timing for the issue, writing a small program whose main function is to test in a given frequency, timing and multi-threaded multimedia timer time output Platform: |
Size: 28672 |
Author:hechao |
Hits:
Description: 本实例实现了一中微秒级的精确定时,利用多媒体定时器的基本功能,可以通过两种方法实现精确定时。1)使用timeGetTime()函数,该函数定时精度为ms级,返回从Windows启动开始所经过的时间。2)使用timeSetEvent()函数.-Achieved one of the examples in the microsecond-level precision timing, use the basic functions of multimedia timer can be two ways to achieve precise timing. 1) Use timeGetTime () function, which ms timing accuracy for the class, to return from the Windows start after the beginning of time. 2) the use of timeSetEvent () function. Platform: |
Size: 3760128 |
Author: |
Hits:
Description: 多媒体定时器,精度可以达到1ms,定时相当准确。代码规范简洁,优美。-Multimedia timer, the accuracy can achieve 1ms, from time to time are reasonably accurate. Code specification is simple and beautiful. Platform: |
Size: 2048 |
Author:李小龙 |
Hits:
Description: 多媒体定时器的应用性测试,可以更深入理解多媒体的定时器应用。-Application of multimedia timer testing can be more in-depth understanding of the application of multimedia timer. Platform: |
Size: 26624 |
Author:sss |
Hits:
Description: 精密定时器集合:VB版
■ SetTimer(多Timer):是使用SetTimer()和回调函数产生的Timer,与VB6中定时器控件效果一样,只是用API实现而已,不爱用控件的朋友可能会喜欢
■ Timer大比拼(CSDN):是CSDN网友提供的测试各种Timer的代码:QueryPerformanceCounte() 多媒体定时器;和VB6定时器控件。测试时,可以看到3种定时器的区别。多媒体定时器和QueryPerformanceCounte()都是较好的选择.
可惜多媒体定时器与VB6似乎不太和谐,如果在回调函数中出现代码,则极易崩溃,即使在IDE种运行正常,生成EXE后也会不稳定,没辙!
■ QTimer原始:是CSDN网友“嗷嗷叫的老马”的作品,使用QueryPerformanceCounter()制作的精密定时器,作者代码很具创造性而且精简。 但有个小问题:拖动鼠标时会停顿。
■ Active EXE_hTimer: 是在“QTimer原始”基础上改装的一个Active EXE, 拖动鼠标时不会停顿,不爽的是任务管理器进程中又多出了一个hTimer.exe。
■ mmTimer控件:是对多媒体定时器的包装,先用VC对多媒体定时器进行包装再提供给VB6使用,解决了VB6与多媒体定时器"不和谐"的问题。
不会停顿,进程中也不会出现"多余的" EXE, 推荐使用
Thinker2009
2009-07-04-This is a collection of VB timer, timer to achieve a variety of ways, there are ordinary, but also sophisticated, super-sophisticated, there are dll s ocx s, as well as the active exe, short will be able to find your favorite ...
■ SetTimer (Multi-Timer): is to use SetTimer () and have a callback function of the Timer, Timer control with VB6 in effect, the only API to achieve it, do not like to use controls may be like a friend
■ Timer Competition (CSDN): is provided CSDN User Timer test code: QueryPerformanceCounte () multimedia timer and VB6 timer control. Test, we can see the difference between three kinds of timers. Multimedia timer and QueryPerformanceCounte () are a better choice.
Unfortunately, multimedia timer does not seem in harmony with VB6, if there in the callback function in code, while easy to collapse, even in the IDE to run the normal species, after the EXE will be generated instability,没辙!
■ QTimer original: Yes CSDN netizen "Old嗷嗷called" the works, Platform: |
Size: 114688 |
Author:尹刚 |
Hits:
Description: 在VC++中使用多媒体计时器的源代码,就像秒表一样的功能,点击设置计时器后,它就开始工作了,当然,实例本身没有什么价值,核心代码倒是可以灵活运用,尤其是刚学习VC的朋友,对你较有用,可以参考下
-VC++, using the multimedia timer in the source code, the same functions as a stopwatch, timer settings, after clicking, it begins to work, of course, instances of little value in itself, the core code does fit flexibility, especially those just learning VC friends, more useful to you, you can refer to the following Platform: |
Size: 15360 |
Author:李杜 |
Hits:
Description: 在VC++中使用多媒体计时器的流程,就像秒表一样的功能,尤其是刚学习VC的朋友,对你较有用。-Use multimedia timer in VC++ process, just like a stopwatch function, especially learning to VC friends, more useful to you. Platform: |
Size: 3072 |
Author:于德秀 |
Hits:
Description: 多媒体定时器的教程和示例代码,非常适合学习使用多媒体定时器。-Multimedia timer tutorials and sample code, very suitable for learning to use the multimedia timer. Platform: |
Size: 3515392 |
Author:王希 |
Hits: