Software Archive
Read-only legacy content
17061 Discussions

XEON - WaitableTimer Resolution

charles_stuart
Beginner
629 Views
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.
0 Kudos
3 Replies
teresa
Beginner
629 Views

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

0 Kudos
teresa
Beginner
629 Views
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

0 Kudos
nick_arn
Beginner
629 Views

//#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 :-)
0 Kudos
Reply