Better SetTimer
-
Hi, We all know that we can set the minimum one milliseconds elapse time with SetTimer function. Can anyone tell me how to set less than 1 ms say 500 micro seconds?:rolleyes:
-
Hi, We all know that we can set the minimum one milliseconds elapse time with SetTimer function. Can anyone tell me how to set less than 1 ms say 500 micro seconds?:rolleyes:
Have a look at http://www.codeproject.com/system/timers\_intro.asp#MMTimers
-
Hi, We all know that we can set the minimum one milliseconds elapse time with SetTimer function. Can anyone tell me how to set less than 1 ms say 500 micro seconds?:rolleyes:
You will want to look at
QueryPerformanceCounter
andQueryPerformanceFrequency
. Most computers now have this high resolution timer, however some of the older ones do not. IN those cases you will have to rely on the Multimedia timer which has a resolution of 1 millisecond. By the way, I believe the timer resolution on the system timer with WM_TIMER has a resolution of 55 milliseconds. Good Luck.
Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!