All Forums
 Microsoft Windows CE
 CE Sample Applications and Utilities
 eVC - PerfSleep (sub-millisecond execution stall)
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

ctacke

877 Posts

Posted - 12 Jun 2003 :  17:14:35  Show Profile  Email Poster
PerfSleep

This class enables applications to suspend execution or "sleep" for intervals based on a 100ns tick. This is 10 000 times finer resolution than provided by the Sleep() function and can be used as a precision timer.

Note that like the Sleep() command, this call blocks the calling thread. No other processing will occur during the delay. Unlike Sleep(), it does not automatically yield to other processes.

This souce code will work for either the SA1110 or the PXA255 but it requires a specific #define as noted in the header file and it must be recompiled.

NOTE: This is an eVC 4.0 project and the downloadable binary will run only on CE 4.x. For CE 3.0 devices you must compile the source with eVC 3.0.

Key APIs Used

VirtualAlloc,
VirtualCopy,
VirtualFree

Lines of Code: 89


Source Download
Rev 2 - Sept 26, 03 (6k zip).


updated Sept 26, 03 (ctacke) - added PXA255 support

t0671dl

27 Posts

Posted - 26 Sep 2003 :  14:01:16  Show Profile  Email Poster
Will this work with CE.NET on a Xscale BitsyX? If not, what is available? Could you create an XScale thread so that we can look at XScale issues distinct from stronArm products?

Edited by - t0671dl on 26 Sep 2003 14:05:12
Go to Top of Page

ctacke

877 Posts

Posted - 26 Sep 2003 :  15:52:21  Show Profile  Email Poster
Update: XScale Support

We've added support for the PXA255 processor to this code. Simply use the #define PXA255 declaration in PerfSleep.h and compile the code.
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000