DWORD GetMessageTime( )
This function returns the message time for the last message retrieved by the GetMessage function. The time is a long integer that specifies the elapsed time (in milliseconds) from the time the system was booted to the time the message was created (placed in the application queue).
This function has no parameters.
The return value specifies the message time.
Do not assume that the return value is always increasing. The return value will “wrap around” to zero if the timer count exceeds the maximum value for long integers.
To calculate time delays between messages, subtract the time of the second message from the time of the first message.