16,471
社区成员
发帖
与我相关
我的任务
分享
DWORD t1 = GetTickCount();
CRect rect;
GetClientRect(&rect);
CPoint center = rect.CenterPoint();
for (int i=2000; i>0; --i)
{
CRect r(center, center);
r.InflateRect(i,i);
pDC->Rectangle(&r);
}
DWORD t2 = GetTickCount();
char str[10];
itoa(t2-t1, str, 10);
strcat(str,"毫秒");
AfxMessageBox(str);