X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftime%2Ftime.h;h=5c916f4c4c2ef04b9648791d862bb3eea731a6cd;hb=80e95491125b762e46fa4295cafb43fe21e15136;hp=46568425c7cd44594e3964d3f8435f316d11eed4;hpb=95ff2139520130dd98a0503e3c4f441c69a68f5a;p=ccan diff --git a/ccan/time/time.h b/ccan/time/time.h index 46568425..5c916f4c 100644 --- a/ccan/time/time.h +++ b/ccan/time/time.h @@ -66,7 +66,7 @@ struct timemono { * Otherwise time_mono() just refers to time_now(). Your code might * test this if you really need a monotonic clock. */ -#if (HAVE_CLOCK_GETTIME || HAVE_CLOCK_GETTIME_IN_LIBRT) && defined(CLOCK_MONOTONIC) +#if HAVE_CLOCK_GETTIME && defined(CLOCK_MONOTONIC) #define TIME_HAVE_MONOTONIC 1 #endif @@ -249,7 +249,7 @@ static inline bool timeabs_eq(struct timeabs a, struct timeabs b) * exit(0); * } * wait(NULL); - * diff = time_between(start, time_now()); + * diff = time_between(time_now(), start); * return timerel_eq(diff, zero); * } */