Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Windows Mobile uses the Sleepfunction and the Wait XXX functions to control timing and synchronization. For more information about Wait XXX 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 between 1- and 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