[PATCH] use CLOCK_MONOTONIC_COARSE posix timer instead of CLOCK_MONOTONIC in Xorg
ykzhao
yakui.zhao at intel.com
Wed Aug 25 18:51:55 PDT 2010
On Tue, 2010-08-24 at 18:59 +0800, Julien Cristau wrote:
> On Tue, Aug 24, 2010 at 16:15:44 +0800, ykzhao wrote:
>
> > I also agree that it is very pretty to get the time by using mentioned
> > order. But the configure script already helps us to test whether the
> > MONOTONIC_CLOCK is supported(It uses the CLOCK_MONOTONIC as the argument
> > of clock_gettime).
> > If so, maybe we can avoid some redundant check.
> >
> The configure check tells you whether CLOCK_MONOTONIC is defined on the
> *build* system. That's not the same thing as telling you whether it
> *works* on the *target*.
Understand. And it looks more reasonable to check the CLOCK_MONOTONIC
on the *target* again.
Is it better that the check of CLOCK_MONOTONIC posix timer is put into
another separated patch? Otherwise it will be mixed with the usage of
CLOCK_MONOTONIC_COARSE posix timer.
Thanks.
>
> Cheers,
> Julien
More information about the xorg-devel
mailing list