I have notes on this I wrote down a long time ago... this was back in VB4 days,
and not sure if they are still relevant, or whether it's operating system
related or VB version related.
GetTickCount is not so fast and not so accurate; but it works without including
the winmm library.
The GetTickCount function retrieves the number of milliseconds that have elapsed
since the system was started. It is limited to the resolution of the system
timer. If you need a higher resolution timer then you will have to use a
multimedia timer or a high-resolution timer
TimeGetTime is second fastest and a LOT more accurate than GetTickCount. The
GetTickCount can be off by as much as 55ms. This one is a higher resolution
timer, and is generally only off ±5ms.
I get the idea that using the Winmm library has more overhead in calling the
function than it does in TimeGetTime, which utilizes the kernel32 library. I
imagine that the only time this will be an issue is if you are relying on
near-accuracy and are calling the procedures in sequential order many times.
I hope this is of some help.
Tim
Post by DaleWhat is the functional difference, if any, between these two API calls? I
looked them both up in API-Guide, and they appear to provide the same
information, namely the number of milliseconds since Windows was started.
Just curious.
Thanks for any information.
--
Dale