EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

GetMessageTime function

Retrieves 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 (that is, placed in the thread's message queue).

Syntax


LONG WINAPI GetMessageTime(void);

Parameters

This function has no parameters.

Return value

Type:

Type: LONG

The return value specifies the message time.

Remarks

The return value from the GetMessageTime function does not necessarily increase between subsequent messages, because the value wraps to wraps to the minimum value for a long integer if the timer count exceeds the maximum value for a long integer.

To calculate time delays between messages, subtract the time of the first message from the time of the second message (ignoring overflow) and compare the result of the subtraction against the desired delay amount.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

See also

Reference
GetMessage
GetMessagePos
Conceptual
Messages and Message Queues

 

 

커뮤니티 추가 항목

추가
표시:
© 2014 Microsoft