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

在vs console下,

1 添加计时器

#include <Windows.h>

double start = GetTickCount();

double end = GetTickCount(); 

totalTime += (end - start);

精度毫秒

 

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

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

 

posted @ 2015-03-21 23:45  qingsun_ny  阅读(1699)  评论(0编辑  收藏  举报