windows下的计算时间间隔 -- GetTickCount()

 

用法:

#include "windows.h"

DWORD lastTime =0;
DWORD currentTime = 0;
DWORD spendTime = 0;

lastTime  = GetTickCount();//ms

//延时

currentTime = GetTickCount();
spendTime = currentTime - lastTime;//ms

https://blog.csdn.net/wuxinliulei/article/details/12314207

posted @ 2019-08-16 11:24  JadeCicada  阅读(623)  评论(0编辑  收藏  举报