[Lazarus] Portable way to get accurate timestamps?

Sven Barth pascaldragon at googlemail.com
Mon Feb 21 21:07:42 CET 2011


On 21.02.2011 04:23, waldo kitty wrote:
> On 2/20/2011 16:04, Bo Berglund wrote:
>> Now I have tested both the GetTickCount and Now() methods.
>> I have synched my tests against a GPS receiver to get an accurate
>> reference.
>>
>> Turns out that GetTickCount has a sawtooth-like overlaid timing noise
>> signal which is about 15 ms.
>>
>> But using Now() I don't see this.
>>
>> In both cases I could detect a 12 ppm drift in the clock of mt PC.
>
> of course, by now, you've seen the post that shows that GetTickCount
> uses now() as the base with which to multiply by :? ;)

That was the non-Windows implementation.

Regards,
Sven




More information about the Lazarus mailing list