GetSystemTime( LPSYSTEMTIME lpSystemTime );
这个是使用格林威治时间,要加上时区计算
也可以直接使用
GetLocalTime(```);
获得时间差
GetTickCount
DWORD dwStart = GetTickCount();// Stop if this has taken too long
if( GetTickCount() - dwStart >= TIMELIMIT )
Cancel();
GetSystemTime( LPSYSTEMTIME lpSystemTime );
这个是使用格林威治时间,要加上时区计算
也可以直接使用
GetLocalTime(```);
获得时间差
GetTickCount
DWORD dwStart = GetTickCount();// Stop if this has taken too long
if( GetTickCount() - dwStart >= TIMELIMIT )
Cancel();