Am 24.09.2015 09:44 schrieb "Michael Van Canneyt" <mich...@freepascal.org>:
>
>
>
> On Thu, 24 Sep 2015, Sven Barth wrote:
>
>> Am 24.09.2015 05:24 schrieb "Bo Berglund" <bo.bergl...@gmail.com>:
>>>
>>>
>>
>> Since you plan to port to Linux a word of caution: the "Windows" unit
>> doesn't exist there (and "GetTickCount" does neither), so you either need
>> to use platform specific functionality from the "BaseUnix" unit or cross
>> platform one from "SysUtils" and friends.
>
>
> GetTickCount(64) exists in sysutils.
>
>
>> You should maybe also tale a look into using conditional compilation
using
>> "$ifdef" and the defines the compiler already provides for you (e.g.
>> "windows", "linux", "unix", "cpui386", "cpuarm", etc.).
>> Note: in 3.0.0 TThread provides the cross platform class functions
>> TThread.GetTickCount and TThread.GetTickCount64.
>
>
> Which simply refer to sysutils.getTickCount(64).

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).

Regards,
Sven
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to