GetTickCount

  DWORD GetTickCount(VOID)    

The GetTickCount function retrieves the number of milliseconds that have elapsed since Windows was started.

Parameters

This function has no parameters.

Return Value

The return value specifies the number of milliseconds that have elapsed since Windows was started.

Comments

The internal timer will wrap around to zero if Windows is run continuously for approximately 49 days.

The GetTickCount function is identical to the GetCurrentTime function. Applications should use GetTickCount, because its name matches more closely with what the function does.

See Also

GetMessageTime, GetSystemTime, GetTickCount, SetSystemTime