[fpc-pascal] Very vague gettickcount64 description?
zoe at scootersoftware.com
Sun Sep 8 04:40:13 CEST 2019
> From: Martin Frb <lazarus at mfriebe.de>
> But that does not mean, it needs to be changed on existing targets.
> And if it is not going to be changed, then it can be documented.
I agree with everything Martin has said, though IMO GetTickCount must
return values in ms on every single platform and any that can't should
have it removed. It's not a precision timer and it should not be an
intrinsic for whatever random RDTSC-like instruction the current
platform has. It's used for checking (rough) elapsed times. I honestly
can't think of a single use for the current function as defined, especially
in a cross-platform app. Precision and accuracy can vary, but
unspecified units with no way to query them is ridiculous.
More information about the fpc-pascal