Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

timeBeginPeriod (Windows CE 5.0)

Windows CE 5.0
Send Feedback

This function sets the minimum timer resolution for an application or device driver.

MMRESULT timeBeginPeriod(
  UINT uPeriod
);

Parameters

uPeriod
[in] Minimum timer resolution, in milliseconds, for the application or device driver.

Return Values

Returns TIMERR_NOERROR, if successful, or TIMERR_NOCANDO, if the resolution specified in uPeriod is out of range.

Remarks

Call this function immediately before using timer services, and call the timeEndPeriod function immediately after you finish using the timer services.

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.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Mmsystem.h.
Link Library: Mmtimer.lib.

See Also

timeEndPeriod | Time Reference


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.