/ / Get the number of clock cycles in the CPU per second
__inline longlong getsecondcount ()
{
Static Large_integer licounter = {0};
IF (0 == Licounter.quadpart)
QueryPerformanceFrequency (& LiCounter);
Return licounter.quadpart;
}
// Return to the current time unit: milliseconds
__INline DWORD HIGHGETTIME ()
{
Large_integer licurrent = {0};
QueryperFormanceCounter (& licurrent);
Return (DWORD) (Licurrent.quadpart * 1000 / GetSecondcount ());
}
Insert the above code into the project, use highgettime () to obtain system time.
Please refer to this function with gettickcount, and TimegetTime.
: Http://blog.9cbs.net/medie/archive/2005/01/04/239795.aspx