Welcome![Sign In][Sign Up]
Location:
Search - QueryPerformanceCounter SetTimer

Search list

[OS programTimer(VB)

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:

[OthermTimer

Description: 用VC++编程,比较三种定时器——SetTimer、timeSetEvent、、QueryPerformanceCounter、GetTickCount的在精度上的差别-Using VC++ programming, comparing three types of timers- SetTimer, timeSetEvent,, QueryPerformanceCounter, GetTickCount the difference in accuracy
Platform: | Size: 731136 | Author: Edison | Hits:

CodeBus www.codebus.net