High resolution Timer
-
How can I implement timer in in Windows (2000/XP )with resolution of 1 milisecond or better. Multimedia timer seems to be not accurate enough, but may be I am not using it right? Thanks DavidR
High Resolution Elapsed Timer[^] ARSALAN MALIK
-
High Resolution Elapsed Timer[^] ARSALAN MALIK
Bear in mind that although you can use QueryPerformanceCounter() to get an accurate elapsed time, you *cannot* get things to happen regularly at for example 1ms intervals. Windows has an internal "clock" of (from memory) 12.5ms, and doing anything more often than that (reliably) just doesn't work.
using System.Beer;
-
Bear in mind that although you can use QueryPerformanceCounter() to get an accurate elapsed time, you *cannot* get things to happen regularly at for example 1ms intervals. Windows has an internal "clock" of (from memory) 12.5ms, and doing anything more often than that (reliably) just doesn't work.
using System.Beer;
Jon Hulatt wrote: Windows has an internal "clock" of (from memory) 12.5ms... Close. For Windows 9x/Me, the system clock ticks at 55 ms. For Windows NT, it ticks at 10 ms. This is the best that can be obtained with a non-RTOS system.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow