Using Timer Services

Timer services let an application request and receive timer messages at application-specified intervals. Real-time multimedia applications can use the following functions to control the pace of data and synchronized presentations:

timeBeginPeriod

Establishes the minimum timer resolution an application will use.

timeEndPeriod

Clears a minimum timer resolution previously set using timeBeginPeriod.

timeGetDevCaps

Returns information about the capabilities of the timer services.

timeGetTime

Returns the system time in milliseconds.

timeGetSystemTime

Fills an MMTIME structure with the system time in milliseconds.

timeSetEvent

Creates a timer event that executes a specific action at a specific time or at periodic intervals.

timeKillEvent

Cancels a timer event previously created using timeSetEvent.