Hi Charles,
Actually 1 millisecond is also not possible for Sleep function. Though you
can specify 1, the real value may be 10 or more. To get high resolution
timers that below 10 milliseconds, you need to call the kernel-mode
function NtSetTimerResolution, however for your higher timer resolution
requirement (within 1 millisecond), I am afraid that it is not possible at
upper language level. Maybe you can implement it via assemble language by
controlling interruption.
For more information, you may refer to the following article:
Inside Windows NT High Resolution Timers
http://technet.microsoft.com/en-us/sysinternals/bb897569.aspx
Hope this give you some hints for your reviewing your requirements and
design.
Best regards,
Charles Wang
Microsoft Online Community Support
===========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: (e-mail address removed).
===========================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for
non-urgent issues where an initial response from the community
or a Microsoft Support Engineer within 1 business day is acceptable.
Please note that each follow up response may take approximately
2 business days as the support professional working with you may
need further investigation to reach the most efficient resolution.
The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by
contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
============================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================