计算程序时间的方法
void time_one()
{
LARGE_INTEGER one;
LARGE_INTEGER two;
LARGE_INTEGER freq;
QueryPerformanceFrequency(&freq);
QueryPerformanceCounter(&one);
for (int i = 0; i < 1000000000; i++)
{
}
QueryPerformanceCounter(&two);
cout
0条评论