GetCurrentTime

  DWORD GetCurrentTime(VOID)    

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

Parameters

This function has no parameters.

Return Value

The return value is the number of milliseconds that have elapsed since Windows was started, if the function was successful.

Comments

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

The GetCurrentTime and GetMessageTime functions return different times. GetMessageTime returns the Windows time when the given message was created, not the current Windows time.

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

See Also

GetMessageTime, GetSystemTime, GetTickCount, SetSystemTime