WORD timeBeginPeriod(wPeriod) | |||
WORD wPeriod; |
The timeBeginPeriod function sets the minimum (lowest number of milliseconds) timer resolution that an application or driver is going to use. Call this function immediately before starting to use timer-event services, and call timeEndPeriod immediately after finishing with the timer-event services.
wPeriod
Specifies the minimum timer-event resolution that the application or driver will use.
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.
timeEndPeriod, timeSetEvent