64,637
社区成员
发帖
与我相关
我的任务
分享
clock_t start;
clock_t end;
start = clock();
srand((unsigned) time(0));
for(int i = 0; i != 10; i++)
{
cout<<rand()%10<<endl;
}
end = clock();
cout<<end-start<<"seconds"<<endl;