检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:陈苗[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.
分 类 号:TP301.6[自动化与计算机技术—计算机系统结构]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.188.60.146