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

Posted butterflybay

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

以上是关于windows下的计算时间间隔 -- GetTickCount()的主要内容,如果未能解决你的问题,请参考以下文章