다음을 통해 공유


Controlling Timing with the Sleep Timer (Windows CE 5.0)

Send Feedback

Windows CE uses the Sleep function and the WaitXXX functions to help control timing and synchronization. For more information about WaitXXX functions, see Wait Functions.

The timer is always set to 1 millisecond under default working conditions when there are threads to schedule. Therefore, you can call Sleep(1) and expect to receive approximately 1 ≤ n ≤ 2 millisecond (ms) accuracy if the thread is the highest priority thread running on the system.

However, the accuracy depends on the priority of your thread, the priority of other threads, and whether interrupt service routines (ISRs) are running.

See Also

Processes and Threads

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.