Is there a timer that has 1 millisec or better resolution?
You can use the function XstGetDateAndTime as a simple timer but it is misleading to think that it can achieve nanosec resolutions. In using nanos in XstGetDateAndTime, Max was thinking ahead to a time when future processors can achieve such a thing. But as it stands now, this function at its best can only do 55 msecs between calls to itself. Listed below are the various results I got for various Win9x and XB timing functions while trying to time a 1 msec interval: XstGetDateAndTime 55 msec XstGetSystemTime 5 msec (which uses GetTickCount) GetTickCount 5 msec (kernel32.dll) timeGetTime 1 msec (winmm.dll) QueryPerformanceCounter 4 microsec (kernel32.dll) QueryPerformanceCounter which is found in kernel32.dll is used in conjunction with QueryPerformanceFrequency. These two functions are not currently in the XB kernel32.dec file so you would need to add them to that file in order to use them.
Related Questions
- Who is entitled to commence an administrative proceeding under the CNNIC Domain Name Dispute Resolution Policy (CNDRP) and its related Rules of Procedure?
- To which disputes does the China Internet Network Information Center Domain Name Dispute Resolution Policy (CNDRP) apply?
- Who are the approved dispute resolution service providers?