节点文献

一种实现计算机高精度定时的方法

A Method for High Precision Timing With a Microcomputer

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 袁佳宁柳华伟柳泉

【Author】 Liu Quan Yuan Jianing (Scholl of Automation, Harbin University of Technology Harbin 150001) Liu Huaei (Research Institute No. 8358, National Aerospace Electro-Mechanics Group Corporation Harbin 150001)

【机构】 中国航天机电集团三院8358所!天津300192哈尔滨工程大学自动化学院!硕士研究生哈尔滨150001

【摘要】 本文叙述了一种在 Windows操作系统下 ,能够实现计算机高精度的简单方便的方法 :通过调用 WindowsAPI函数 Query Performance Counter取得系统计数器的即时值 ,当与前一计数值比较后达到一定的时间间隔 ,就可以进行一定的程序操作 ,从而实现了计算机定时。经测试 ,该方法可以达到 10 ms的定时精度。

【Abstract】 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.

  • 【文献出处】 微型电脑应用 ,Microcomputth Applications , 编辑部邮箱 ,2000年11期
  • 【被引频次】6
  • 【下载频次】64
节点文献中: 

本文链接的文献网络图示:

本文的引文网络