From: Mathieu Desnoyers Date: Mon, 28 Sep 2015 16:58:59 +0000 (-0400) Subject: caa_get_cycles: caa_ prefix for type, use CLOCK_MONOTONIC X-Git-Tag: v0.9.0~18 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=3fa182868e25068413fdaa1bef290365e99ab246;hp=3fa182868e25068413fdaa1bef290365e99ab246;p=userspace-rcu.git caa_get_cycles: caa_ prefix for type, use CLOCK_MONOTONIC clock_gettime() of CLOCK_MONOTONIC mimicks better the behavior of a cycle counter, since it is not affected by NTP major time updates. Also, now prefix "cycles_t" with a caa_ prefix, so it does not clash with application namespaces. Anyway, caa_get_cycles() is mostly used in testing. Signed-off-by: Mathieu Desnoyers ---