首页 | 本学科首页   官方微博 | 高级检索  
     检索      

一种改进的CPU主频精确测量方法
引用本文:陈苗.一种改进的CPU主频精确测量方法[J].五邑大学学报(自然科学版),2012,26(3):62-66.
作者姓名:陈苗
作者单位:淮南师范学院数学与计算科学系,安徽淮南,232001
基金项目:安徽高校省级自然科学研究项目资助
摘    要:对于精度要求为亚毫秒级的延时及其测量,需用CPU的时钟周期数除以CPU主频得到.时钟周期数可以用简单的汇编语言获得,因此,如何测准CPU的主频成为关键问题.本文利用TickCount变化的瞬间作为起始和结束时间,并且通过判断时钟周期数之差的大小,系统地消除由于进程切换所引起的周期数的波动,其精度优于10μs.实验结果证明,本方法可以高精度地测量CPU的主频进而精确测量延时.

关 键 词:CPU时钟周期  CPU主频  延时测量

An Improved Accurate Measurement for CPU Frequencies
CHEN Miao.An Improved Accurate Measurement for CPU Frequencies[J].Journal of Wuyi University(Natural Science Edition),2012,26(3):62-66.
Authors:CHEN Miao
Institution:CHEN Miao(Department of Mathematics and Computational Science,Huainan Normal University, Huainan 232001,China)
Abstract:Time delay whose accuracy is in terms of millisecond and its measurement can be obtained by dividing the number of CPU circles by CPU frequency.The CPU circles can be obtained with easy assembly language,thus the accurate measurement of the CPU frequency is the key.This study uses the TickCount to record the start time and end time,and eliminates systematically the fluctuation caused by process switching through the judgment of the differences between the numbers of clock cycles.The accuracy is within.The experimental result shows that this method can accurately measure CPU frequency and time relay.
Keywords:CPU cycles  CPU frequency  delay measurement
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号