摘要
为满足精确定时的需求,研究了Windows2000操作系统下各种定时器的用法和性能。分别利用计算机的高精度计数器和CPU时间戳计数器结合Windows多线程优先级调度机制,实现了两种高精度的微秒级定时器。通过试验比较,证明该定时器具有很高的精度和稳定性。
To satisfy the requirement of precise timing, several methods and its performance about timers in Windows2000 operation system are discussed. Then respectively using high-resolution performance counter and CPU time stamp counter develop two microsecond level precision timer, each depends on multithreading and priority based schedule mechanism of Windows. The results of experiments show that the precision timer has high robustness and accuracy.
出处
《工业仪表与自动化装置》
2007年第1期52-55,共4页
Industrial Instrumentation & Automation
基金
国家自然科学基金重点资助项目(60134010)
关键词
精确定时
定时器
高精度计数器
CPU时间戳计数器
precise timing
timer
high - resolution performance counter
CPU time stamp counter