用法:
#include "windows.h"
DWORD lastTime =0;
DWORD currentTime = 0;DWORD spendTime = 0;lastTime = GetTickCount();//ms
//延时
currentTime = GetTickCount();
spendTime = currentTime - lastTime;//ms本文共 250 字,大约阅读时间需要 1 分钟。
用法:
#include "windows.h"
DWORD lastTime =0;
DWORD currentTime = 0;DWORD spendTime = 0;lastTime = GetTickCount();//ms
//延时
currentTime = GetTickCount();
spendTime = currentTime - lastTime;//ms转载于:https://www.cnblogs.com/butterflybay/p/11362783.html