XEON - WaitableTimer Resolution

XEON - WaitableTimer Resolution

The waitabletimer resolution seems to be 16 ms on a 3.2 Ghz XEON processor. The minimum period seems to be 16 ms, while on a Pentium system the resolution is 1 ms. Is it possible to have my HP XEON workstation have increased resolution? I need a 5 ms timer.

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

I have escalated this and will let you know when I get a response.

Not surewhat OS you have, but here's some pointers from our engineering team:

On Windows* - QueryPerformanceCounter api call is able to go down to a microsecond resolution or use the multimedia timer APIs these are documented on MSDN*. The other option is to read the rdtsc register directly.This goes well below microsecond granularity (on Intel Xeon Processor it is ~100 cycles per read).

On Linux* - gettimeofday has a microsecond resolution also. So this could be an option.

Hope this helps.

Regards,

Teresa R.

Intel Software Network Support

http://www.intel.com/software

Contact us

Intel is a registered trademark of Intel Corporation or its subsidiaries in the United States and other countries.

*Other names and brands may be claimed as the property of others.

Message Edited by intel.software.network.support on 11-15-2005 08:40 PM

//#include

//#pragma comment (lib,"winmm.lib")

TIMECAPS tc;

timeGetDevCaps(&tc,sizeof(TIMECAPS));

MMRESULT mr=timeBeginPeriod(tc.wPeriodMin);

//usually, you can increase it to 1 ms :-)

Leave a Comment

Please sign in to add a comment. Not a member? Join today