[fpc-devel] About GetTickCount

zeljko zeljko at holobit.net
Thu Nov 3 09:54:06 CET 2011


On Thursday 03 of November 2011 09:41:05 zeljko wrote:
> I guess that there's no GetTickCount in RTL.
> Is it possible to add it there ?
> Why ?
> Because current GetTickCount in lazarus uses Now() which is movable
> backward/forward by ntpd under unixes, and that could be a huge problem.
> 
> This is what MSDN says about GetTickCount:
> Retrieves the number of milliseconds that have elapsed since the system was
> started, up to 49.7 days (what they do after 49.7 days ? ).
> 
> So, according to POSIX clock_gettime(CLOCK_MONOTONIC) is supported on
> linux, bsd and others, and in that case we can have exact GetTickCount.
> If there's no support for monotonic clock on some platform , now() can be
> returned anytime.

Forget all about this, only CLOCK_MONOTONIC_RAW is something we need but it's 
supported as of 2.6.28 kernel ... so no way.

zeljko

> 
> 
> 
> zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20111103/42302367/attachment.html>


More information about the fpc-devel mailing list