Use High Resolution
Provided by: Dan Haught, FMS Executive Vice President
The built-in Visual Basic timer object does not have very high resolution.
This can make it difficult to perform accurate timings. The following code,
from the our award-winning
Total Visual SourceBook
2002 product, shows how to use a high-resolution multi-media timer to track
elapsed time. This class is useful for timing user operations, or for
bench-marking your applications. Because it uses the Windows multi-media
timer it uses much higher resolution than the built-in VB Timer function.
Return to the tips page