WORD timeEndPeriod(wPeriod)
This function clears a previously set minimum (lowest number of milliseconds) timer resolution that an application or driver is going to use. Call this function immediately after using timer event services.
WORD wPeriod
Specifies the minimum timer-event resolution value specified in the previous call to timeBeginPeriod.
Returns zero if successful. Returns TIMERR_NOCANDO if the specified wPeriod resolution value is out of range.
For each call to timeBeginPeriod, you must call timeEndPeriod with a matching wPeriod value. An application or driver can make multiple calls to timeBeginPeriod, as long as each timeBeginPeriod call is matched with a timeEndPeriod call.
timeBeginPeriod, timeSetEvent