[Lazarus] Better implementation of GetTickcount using clock_gettime

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Apr 2 13:57:52 CEST 2014

On Wed, 02 Apr 2014 13:19:39 +0200
Luca Olivetti <luca at wetron.es> wrote:

> El 02/04/14 13:10, Mattias Gaertner ha escrit:
> > CLOCK_MONOTONIC_RAW would better emulate the WinAPI
> > function GetTickCount. 
> Well, yes, isn't that the function we're trying to emulate?

I meant: it would be nearer to the shortcomings of the WinAPI functions.
I guess there are not many programs which need the system ticks. I
guess the majority need the milliseconds.

> (note that I personally don't need the precision, for me
> CLOCK_MONOTONIC_COARSE would probably be more than enough).



More information about the Lazarus mailing list