#include<stdio.h>
#include<Windows.h>
void test();
int main()
{
DWORD start, end;
start = GetTickCount();
test();
end = GetTickCount();
printf("经过的时间为: %d 毫秒\n", end - start);
return 0;
}
void test()
{
Sleep(3000);
}
#include<stdio.h>
#include<Windows.h>
void test();
int main()
{
DWORD start, end;
start = GetTickCount();
test();
end = GetTickCount();
printf("经过的时间为: %d 毫秒\n", end - start);
return 0;
}
void test()
{
Sleep(3000);
}