GetMessageTime

2.x

  LONG GetMessageTime(void)    

The GetMessageTime 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 started to the time the message was created (placed in the application queue).

Parameters

This function has no parameters.

Return Value

The return value specifies the message time if the function is successful.

Comments

The return value of the GetMessageTime function does not necessarily increase between subsequent messages, because the value wraps to zero if the timer count exceeds the maximum value for long integers.

To calculate time delays between messages, verify that the time of the second message is greater than the time of the first message and then subtract the time of the first message from the time of the second message.

See Also

GetMessage, GetMessagePos