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

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to