Timer
Resolution
To determine
the minimum and maximum timer resolutions supported by the timer services, use
the timeGetDevCaps1FWO5CK
function. This function fills the wPeriodMin and wPeriodMax
members of the TIMECAPS3BRT_LA
structure with the minimum and maximum resolutions. This range can vary across
computers and Windows platforms.
After you
determine the minimum and maximum available timer resolutions, you must
establish the minimum resolution you want your application to use. Use the timeBeginPeriodM4M6LV and timeEndPeriod3I23Z3P functions to set and clear
this resolution. You must match each call to timeBeginPeriod with a call
to timeEndPeriod, specifying the same minimum resolution in both calls.
An application can make multiple timeBeginPeriod calls, as long as each
call is matched with a call to timeEndPeriod.
In both timeBeginPeriod
and timeEndPeriod, the uPeriod parameter indicates the minimum
timer resolution, in milliseconds. You can specify any timer resolution value
within the range supported by the timer.