[fpc-pascal] Very vague gettickcount64 description?
Marco van de Voort
fpc at pascalprogramming.org
Fri Sep 6 18:18:58 CEST 2019
Op 2019-09-06 om 16:07 schreef Michael Van Canneyt:
>
>>
>> While consulting the online reference about gettickcount
>> https://www.freepascal.org/docs-html/rtl/sysutils/gettickcount64.html
>> I could not know anything about the units involved.
>>
>> It says "It is useful for time measurements, but no assumtions should
>> be made as to the interval between the ticks."
>>
>> I understand that in some cases the measure may deviate from the real
>> value but perhaps, at least the units, should be stated.
>
> As a physicist by education, normally I'd agree with you about units,
> but not in this case.
>
> In this case I will not put it because it can/will depend on the system.
>
> You should only use it for relative measurements, in that case the
> unit does
> not matter.
>
If so, why doesn't the *nix implementation return the full precision
rather than dividing to get in the ms range ?
I happened to run into this a few weeks ago, and considered it a mistake
(meaning the unit was fixed ms, and the remark refering to the update
granularity rather than unit).
More information about the fpc-pascal
mailing list