#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);
}
C语言 计算程序经过的时间
最新推荐文章于 2024-01-23 13:03:34 发布