Rediger

Del via


Timers

A timer is an internal routine that repeatedly measures a specified interval, in milliseconds.

In This Section

Name Description
About Timers Describes how to create, identify, set, and delete timers.
Using Timers Discusses how to create and destroy timers, and how to use a timer to trap mouse input at specified intervals.
Timer Reference Contains the API reference.

 

Timer Functions

Name Description
KillTimer Destroys the specified timer.
SetTimer Creates a timer with the specified time-out value.
TimerProc An application-defined callback function that processes WM_TIMER messages. The TIMERPROC type defines a pointer to this callback function. TimerProc is a placeholder for the application-defined function name.

 

Timer Notifications

Name Description
WM_TIMER Posted to the installing thread's message queue when a timer expires. The message is posted by the GetMessage or PeekMessage function.