一种实现计算机高精度定时的方法  被引量:2

A Method for High Precision Timing With a Microcomputer

在线阅读下载全文

作  者:袁佳宁 柳华伟 柳泉[2] 

机构地区:[1]中国航天机电集团三院8358所,天津300192 [2]哈尔滨工程大学自动化学院,硕士研究生哈尔滨150001

出  处:《微型电脑应用》2000年第11期41-42,3,共2页Microcomputer Applications

摘  要:本文叙述了一种在 Windows操作系统下 ,能够实现计算机高精度的简单方便的方法 :通过调用 WindowsAPI函数 Query Performance Counter取得系统计数器的即时值 ,当与前一计数值比较后达到一定的时间间隔 ,就可以进行一定的程序操作 ,从而实现了计算机定时。经测试 ,该方法可以达到 10 ms的定时精度。This paper describes a simple method for high precision timing in the Microsoft Windows environment.It first gets the current value of the system counter by calling the API function of QueryPerformanceCounter and then computes the interval by comparing this value with its previous one. In this way it can realize high-precision timing.Tests show that it achieves a timing accuracy of 10 ms.

关 键 词:计算机 高精度定时 计数器 硬件 

分 类 号:TP303[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象