详细介绍了Windows开发环境中Win32 API和.NET Framework提供的各种定时器,对不同定时器的特点进行了分析比较,提出了解决多线程定时器带来的代码重入问题和提高定时处理实时性的方法并给出了验证。
Several timers supported by Win32 API and. NET Framework are described. The differences between the timers are analyzed, and solutions to code re-entry problem brought by multi-threading timers and approaches to the improvement of the real-time ability of timing are presented.