[PATCH] use CLOCK_MONOTONIC_COARSE posix timer instead of CLOCK_MONOTONIC in Xorg

Samuel Thibault samuel.thibault at ens-lyon.org
Mon Aug 23 18:16:26 PDT 2010


ykzhao, le Tue 24 Aug 2010 09:07:49 +0800, a écrit :
> +    static clockid_t clockid;
> +    if (!clockid) {
> +#ifdef __linux__
> +#ifndef CLOCK_MONONOTIC_COARSE
> +#define CLOCK_MONOTONIC_COARSE

If you don't provide the value 6 here, it's completely useless.

> +#endif
> +	if ((clock_getres(CLOCK_MONOTONIC_COARSE, &tp) == 0) &&

Samuel


More information about the xorg-devel mailing list