<p>Am 24.09.2015 09:44 schrieb "Michael Van Canneyt" <<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>>:<br>
><br>
><br>
><br>
> On Thu, 24 Sep 2015, Sven Barth wrote:<br>
><br>
>> Am 24.09.2015 05:24 schrieb "Bo Berglund" <<a href="mailto:bo.berglund@gmail.com">bo.berglund@gmail.com</a>>:<br>
>>><br>
>>><br>
>><br>
>> Since you plan to port to Linux a word of caution: the "Windows" unit<br>
>> doesn't exist there (and "GetTickCount" does neither), so you either need<br>
>> to use platform specific functionality from the "BaseUnix" unit or cross<br>
>> platform one from "SysUtils" and friends.<br>
><br>
><br>
> GetTickCount(64) exists in sysutils.<br>
><br>
><br>
>> You should maybe also tale a look into using conditional compilation using<br>
>> "$ifdef" and the defines the compiler already provides for you (e.g.<br>
>> "windows", "linux", "unix", "cpui386", "cpuarm", etc.).<br>
>> Note: in 3.0.0 TThread provides the cross platform class functions<br>
>> TThread.GetTickCount and TThread.GetTickCount64.<br>
><br>
><br>
> Which simply refer to sysutils.getTickCount(64).</p>
<p>Ehm right... I forgot about them despite having added them myself. :P Like TThread.GetTickCount(64) however they are only available in 3.0.0 and newer (they were added at the same time as the TThread ones).</p>
<p>Regards,<br>
Sven</p>