- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have escalated this and will let you know when I get a response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Intel is a registered trademark of Intel Corporation or its subsidiaries in the
*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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
//#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 :-)

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page