Commit 339203cc authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Add pointless micro-optimisation.

parent 997af8b7
......@@ -68,7 +68,7 @@ gettime(struct timeval *tv)
#if defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0 && defined(CLOCK_MONOTONIC)
static int have_posix_clocks = -1;
if(have_posix_clocks < 0) {
if(UNLIKELY(have_posix_clocks < 0)) {
struct timespec ts;
int rc;
rc = clock_gettime(CLOCK_MONOTONIC, &ts);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment