[Lazarus] Better implementation of GetTickcount using clock_gettime
Luca Olivetti
luca at wetron.es
Wed Apr 2 15:11:32 CEST 2014
El 02/04/14 14:29, Marco van de Voort ha escrit:
> On Wed, Apr 02, 2014 at 01:19:39PM +0200, Luca Olivetti wrote:
>>> CLOCK_MONOTONIC_RAW would better emulate the WinAPI
>>> function GetTickCount.
>>
>> Well, yes, isn't that the function we're trying to emulate?
>>
>> (note that I personally don't need the precision, for me
>> CLOCK_MONOTONIC_COARSE would probably be more than enough).
>
> I don't see _RAW and _COARSE anywhere in the mentioned opengroup link.
> Keep in mind this is UNIX gettickcount, not linux gettickcount.
Correct, but the function clock_gettime is currently only defined for
Linux (at least I grepped the sources for fpc 2.6.4 and only found it
there).
Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es
Tel. +34 935883004 Fax +34 935883007
More information about the Lazarus
mailing list