vs c++系统函数 计时器和暂停

在vs console下,

1 添加计时器

#include <Windows.h>

double start = GetTickCount();

double end = GetTickCount(); 

totalTime += (end - start);

精度毫秒

2 让doc窗口不在程序结束后马上消失

在main()的结尾添加system("pause");

原文地址:https://www.cnblogs.com/qingsunny/p/4356557.html