一种改进的CPU主频精确测量方法  

An Improved Accurate Measurement for CPU Frequencies

在线阅读下载全文

作  者:陈苗[1] 

机构地区:[1]淮南师范学院数学与计算科学系,安徽淮南232001

出  处:《五邑大学学报(自然科学版)》2012年第3期62-66,共5页Journal of Wuyi University(Natural Science Edition)

基  金:安徽高校省级自然科学研究项目资助(KJ2011Z346;KJ2011Z357)

摘  要:对于精度要求为亚毫秒级的延时及其测量,需用CPU的时钟周期数除以CPU主频得到.时钟周期数可以用简单的汇编语言获得,因此,如何测准CPU的主频成为关键问题.本文利用TickCount变化的瞬间作为起始和结束时间,并且通过判断时钟周期数之差的大小,系统地消除由于进程切换所引起的周期数的波动,其精度优于10μs.实验结果证明,本方法可以高精度地测量CPU的主频进而精确测量延时.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 10μs. The experimental result shows that this method can accurately measure CPU frequency and time relay.

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

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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