16,551
社区成员
发帖
与我相关
我的任务
分享
vector<int> vec;
for (int i = 0; i < 10; i++)
{
DWORD dwStart = GetTickCount();
for (int i = 1; i < 9999999; i++)
{
int d = 99234;
int s = d / 2323;
CString str;
str.Format("%d%d%d", s, s, s );
}
DWORD dwEnd = GetTickCount();
vec.push_back(dwEnd - dwStart);
}
CString str;
str.Format("%d\n%d\n%d\n%d\n%d\n%d\n%d\n%d\n%d\n%d\n", vec[0], vec[1], vec[2], vec[3], vec[4], vec[5], vec[6], vec[7], vec[8], vec[9]);
MessageBox(str);