CPU测试程序代码,Windows VS Linux
2009 年 5 月 8 日
一直想估计一下自己的cpu每秒能大概运算多少次
#include
#include
using namespace std;
int main(){
time_t one, two, three;
one=time(NULL);
two=time(NULL)+2;
three=time(NULL)+1;
int x=0;
while(two!=one) {
one=time(NULL);
if(three==one) x++;
}
cout<
}
测试结果 amd 2000+ ddr400 512M Windows xp vc++6
108万次左右 每秒
赛扬400MHZ sdram pc100 128