[fpc-devel] About GetTickCount
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Fri Nov 4 10:32:58 CET 2011
Sven Barth schrieb:
> It's basically a 64-bit type now. Here's ReactOS' implementation of
> GetTickCount64 (which is called by GetTickCount):
[...]
> You notice the loop regarding SharedUserData again? ;) (though this time
> it also contains a call to "YieldProcessor" and a comment regarding the
> loop)
Thanks, this makes it more clear: the implementation avoids a critical
section or other more expensive synchronization.
Nonetheless this implementation gives no clue on the MS Windows
implementation, including variations (32/64 bit, WinCE...). We only can
assume that GetTickCount is fast, and thus may be the base for other
get-time functions.
DoDi
More information about the fpc-devel
mailing list