[Lazarus] Portable way to get accurate timestamps?

waldo kitty wkitty42 at windstream.net
Mon Feb 21 04:23:15 CET 2011


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 :? ;)




More information about the Lazarus mailing list