[PATCH 1/2] GetTimeInMillis: Use CLOCK_MONOTONIC_COARSE where available

Julien Cristau jcristau at debian.org
Fri Dec 17 10:20:21 PST 2010


On Fri, Dec 17, 2010 at 16:57:14 +0000, Daniel Stone wrote:

> On some systems, using CLOCK_MONOTONIC forces a readback of HPET or some
> similarly expensive timer.  CLOCK_MONOTONIC_COARSE can alleviate this,
> at the cost of negligibly-reduced resolution, so prefer that where we
> can.
> 
> Signed-off-by: Daniel Stone <daniel at fooishbar.org>
> ---
>  os/utils.c |   16 +++++++++++++++-
>  1 files changed, 15 insertions(+), 1 deletions(-)
> 
Reviewed-by: Julien Cristau <jcristau at debian.org>

Cheers,
Julien


More information about the xorg-devel mailing list