diff options
Diffstat (limited to 'src/afl-common.c')
-rw-r--r-- | src/afl-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/afl-common.c b/src/afl-common.c index 9a27824d..8af49e19 100644 --- a/src/afl-common.c +++ b/src/afl-common.c @@ -999,7 +999,7 @@ inline u64 get_cur_time(void) { struct timespec ts; int rc = clock_gettime(CLOCK_MONOTONIC_COARSE, &ts); - if (rc == -1) { + if (unlikely(rc == -1)) { PFATAL("Failed to obtain timestamp (errno = %i: %s)\n", errno, strerror(errno)); @@ -1012,11 +1012,11 @@ inline u64 get_cur_time(void) { /* Get unix time in microseconds */ -u64 get_cur_time_us(void) { +inline u64 get_cur_time_us(void) { struct timespec ts; int rc = clock_gettime(CLOCK_MONOTONIC_COARSE, &ts); - if (rc == -1) { + if (unlikely(rc == -1)) { PFATAL("Failed to obtain timestamp (errno = %i: %s)\n", errno, strerror(errno)); |